Skip to content

Commit 2ecd0ed

Browse files
ColinIanKingidryomov
authored andcommitted
ceph: remove redundant variable ino
Variable ino is being assigned a value that is never read. The variable and assignment are redundant, remove it. Cleans up clang scan build warning: warning: Although the value stored to 'ino' is used in the enclosing expression, the value is never actually read from 'ino' [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent a743795 commit 2ecd0ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ceph/mds_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static int ceph_parse_deleg_inos(void **p, void *end,
437437
ceph_decode_32_safe(p, end, sets, bad);
438438
dout("got %u sets of delegated inodes\n", sets);
439439
while (sets--) {
440-
u64 start, len, ino;
440+
u64 start, len;
441441

442442
ceph_decode_64_safe(p, end, start, bad);
443443
ceph_decode_64_safe(p, end, len, bad);
@@ -449,7 +449,7 @@ static int ceph_parse_deleg_inos(void **p, void *end,
449449
continue;
450450
}
451451
while (len--) {
452-
int err = xa_insert(&s->s_delegated_inos, ino = start++,
452+
int err = xa_insert(&s->s_delegated_inos, start++,
453453
DELEGATED_INO_AVAILABLE,
454454
GFP_KERNEL);
455455
if (!err) {

0 commit comments

Comments
 (0)