projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bf996a
)
ceph: remove redundant assignment
author
Chengguang Xu
<cgxu519@gmx.com>
Thu, 15 Nov 2018 14:27:01 +0000
(22:27 +0800)
committer
Ilya 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
patch
|
blob
|
history
diff --git
a/fs/ceph/mdsmap.c
b/fs/ceph/mdsmap.c
index 44e53abeb32ae6495663afd1131564f33fea3188..1a2c5d390f7f184705b3bde1f68f36074b6bf39e 100644
(file)
--- 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++;