Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chengguang Xu and committed by
Ilya Dryomov
0cab9f33 2bf996ac

-1
-1
fs/ceph/mdsmap.c
··· 35 35 36 36 /* pick */ 37 37 n = prandom_u32() % n; 38 - i = 0; 39 38 for (i = 0; n > 0; i++, n--) 40 39 while (m->m_info[i].state <= 0) 41 40 i++;