mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 10:10:33 +02:00
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>
This commit is contained in:
parent
2bf996ac48
commit
0cab9f33d9
1 changed files with 0 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue