Skip to content

Commit

Permalink
ceph: remove redundant assignment
Browse files Browse the repository at this point in the history
There is redundant assighment of variable i in
ceph_mdsmap_get_random_mds(), just remvoe it.

Signed-off-by: Chengguang Xu <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
  • Loading branch information
Chengguang Xu authored and idryomov committed Dec 26, 2018
1 parent 2bf996a commit 0cab9f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ceph/mdsmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 0cab9f3

Please sign in to comment.