提交 0cab9f33 编写于 作者: C Chengguang Xu 提交者: Ilya Dryomov

ceph: remove redundant assignment

There is redundant assighment of variable i in
ceph_mdsmap_get_random_mds(), just remvoe it.
Signed-off-by: NChengguang Xu <cgxu519@gmx.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 2bf996ac
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册