OSDN Git Service

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 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit5c07c53f2d273bda075cacf3d5e41a59cf634462
treef4006291057dd96a11dc685f0b6c7d8f4045fee2
parentc4bf190999953c26070a59172ed01b995521c5ed
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