summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_read.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-09-12 13:37:43 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:13 -0400
commit2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2 (patch)
tree759d51e1ccc113180edcfdd7d63477c5c0bd4b32 /fs/bcachefs/io_read.c
parentc04cbc0dfd261bb8310cde82996e0360e4c38d39 (diff)
downloadlinux-2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2.tar.gz
linux-2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2.tar.bz2
linux-2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2.zip
bcachefs: remove duplicated assignment to variable offset_into_extent
Variable offset_into_extent is being assigned to zero and a few statements later it is being re-assigned again to the save value. The second assignment is redundant and can be removed. Cleans up clang-scan build warning: fs/bcachefs/io.c:2722:3: warning: Value stored to 'offset_into_extent' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_read.c')
-rw-r--r--fs/bcachefs/io_read.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/io_read.c b/fs/bcachefs/io_read.c
index 5ff430e1e244..3c6c1396915a 100644
--- a/fs/bcachefs/io_read.c
+++ b/fs/bcachefs/io_read.c
@@ -897,7 +897,6 @@ retry_pick:
pick.crc.uncompressed_size = bvec_iter_sectors(iter);
pick.crc.offset = 0;
pick.crc.live_size = bvec_iter_sectors(iter);
- offset_into_extent = 0;
}
get_bio:
if (rbio) {