summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-05-18 09:55:08 +0100
committerIlya Dryomov <idryomov@gmail.com>2022-05-25 20:45:14 +0200
commit2ecd0edd13a8bed87c3588bcd4a048113eff18f6 (patch)
treeaa4f64769fc7d7579ab6f36c731c881ddbc94005 /fs/ceph
parenta74379543d229a3fb1af8cd44cbd19844a7bb1bc (diff)
downloadlinux-rpi-2ecd0edd13a8bed87c3588bcd4a048113eff18f6.tar.gz
linux-rpi-2ecd0edd13a8bed87c3588bcd4a048113eff18f6.tar.bz2
linux-rpi-2ecd0edd13a8bed87c3588bcd4a048113eff18f6.zip
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 23a6c11d805c..e9eb996e0aee 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -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) {