From: Colin Ian King Date: Tue, 12 Sep 2023 12:37:43 +0000 (+0100) Subject: bcachefs: remove duplicated assignment to variable offset_into_extent X-Git-Tag: microblaze-v6.8~204^2~74 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2;p=linux-2.6-microblaze.git 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 Signed-off-by: Kent Overstreet --- 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) {