summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-06-21 16:09:37 +0300
committerDavid Sterba <dsterba@suse.com>2023-08-21 15:52:11 +0300
commitcf4ac2b9049be459dfbaddbeb9322366f1ac2dc6 (patch)
treed2b6a5dc7097368e96ca081461b4c927f64f64f8 /fs/btrfs/dev-replace.c
parent07a3bb95ea1f7fa77e360cf3b0f06dff41dbf391 (diff)
downloadlinux-cf4ac2b9049be459dfbaddbeb9322366f1ac2dc6.tar.xz
btrfs: scrub: remove redundant division of stripe_nr
Variable stripe_nr is being divided by map->num_stripes however the result is never read. The division and assignment are redundant and can be removed. Cleans up clang scan build warning: fs/btrfs/scrub.c:1264:3: warning: Value stored to 'stripe_nr' is never read [deadcode.DeadStores] The code is a leftover from 6ded22c1bfe6 ("btrfs: reduce div64 calls by limiting the number of stripes of a chunk to u32") that converted div64 to normal division, it's the same but previous version did not trigger a warning. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions