From: Chengguang Xu Date: Thu, 15 Nov 2018 14:27:01 +0000 (+0800) Subject: ceph: remove redundant assignment X-Git-Tag: Ubuntu-5.13.0-19.19~9404^2~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0cab9f33d9c33f5ea94e5438fbc91bc8b7f48057;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Ilya Dryomov --- 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++;