From: Jiapeng Chong Date: Fri, 21 Jan 2022 11:42:24 +0000 (+0800) Subject: btrfs: scrub: remove redundant initialization of increment X-Git-Tag: baikal/aarch64/sdk6.1~4442^2~82 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=1968ab261c1efc6f2a05083148c63e53819e2d06;p=kernel.git btrfs: scrub: remove redundant initialization of increment increment is being initialized to map->stripe_len but this is never read as increment is overwritten later on. Remove the redundant initialization. Cleans up the following clang-analyzer warning: fs/btrfs/scrub.c:3193:6: warning: Value stored to 'increment' during its initialization is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 2e9a322773f28..11089568b2879 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -3190,7 +3190,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx, u64 generation; int mirror_num; struct btrfs_key key; - u64 increment = map->stripe_len; + u64 increment; u64 offset; u64 extent_logical; u64 extent_physical;