]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ceph: remove redundant assignment
authorChengguang Xu <cgxu519@gmx.com>
Thu, 15 Nov 2018 14:27:01 +0000 (22:27 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Dec 2018 14:56:04 +0000 (15:56 +0100)
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>
fs/ceph/mdsmap.c

index 44e53abeb32ae6495663afd1131564f33fea3188..1a2c5d390f7f184705b3bde1f68f36074b6bf39e 100644 (file)
@@ -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++;