diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-11-15 22:27:01 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-12-26 15:56:04 +0100 |
commit | 0cab9f33d9c33f5ea94e5438fbc91bc8b7f48057 (patch) | |
tree | 179a853494f5b6b1016cb20ce449cfe387b932ad /fs/ceph | |
parent | 2bf996ac48326645ffe5985edfca307838f8eafe (diff) | |
download | linux-0cab9f33d9c33f5ea94e5438fbc91bc8b7f48057.tar.gz linux-0cab9f33d9c33f5ea94e5438fbc91bc8b7f48057.tar.bz2 linux-0cab9f33d9c33f5ea94e5438fbc91bc8b7f48057.zip |
ceph: remove redundant assignment
There is redundant assighment of variable i in
ceph_mdsmap_get_random_mds(), just remvoe it.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/mdsmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/mdsmap.c b/fs/ceph/mdsmap.c index 44e53abeb32a..1a2c5d390f7f 100644 --- a/fs/ceph/mdsmap.c +++ b/fs/ceph/mdsmap.c @@ -35,7 +35,6 @@ int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m) /* pick */ n = prandom_u32() % n; - i = 0; for (i = 0; n > 0; i++, n--) while (m->m_info[i].state <= 0) i++; |