]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: remove redundant variable ino
authorColin Ian King <colin.i.king@gmail.com>
Wed, 18 May 2022 08:55:08 +0000 (09:55 +0100)
committerXiubo Li <xiubli@redhat.com>
Wed, 18 May 2022 14:20:33 +0000 (22:20 +0800)
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: Xiubo Li <xiubli@redhat.com>
fs/ceph/mds_client.c

index e8c87dea055194d286f6703553c9f797e6b1e039..9265cf8224a1ac2ce991b4576f079d7dabb90149 100644 (file)
@@ -437,7 +437,7 @@ static int ceph_parse_deleg_inos(void **p, void *end,
        ceph_decode_32_safe(p, end, sets, bad);
        dout("got %u sets of delegated inodes\n", sets);
        while (sets--) {
-               u64 start, len, ino;
+               u64 start, len;
 
                ceph_decode_64_safe(p, end, start, bad);
                ceph_decode_64_safe(p, end, len, bad);
@@ -449,7 +449,7 @@ static int ceph_parse_deleg_inos(void **p, void *end,
                        continue;
                }
                while (len--) {
-                       int err = xa_insert(&s->s_delegated_inos, ino = start++,
+                       int err = xa_insert(&s->s_delegated_inos, start++,
                                            DELEGATED_INO_AVAILABLE,
                                            GFP_KERNEL);
                        if (!err) {