btrfs: scrub: remove redundant initialization of increment
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 21 Jan 2022 11:42:24 +0000 (19:42 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Feb 2022 15:36:00 +0000 (16:36 +0100)
commita5ded00dd21f07cbf6785b80f3c3dfbe02b21b03
tree49fd5958bc56311642ad3b45af582c8268ad0ed6
parenta253b9deb212580cc8844ea331d8b8f9ce7e91db
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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c