summaryrefslogtreecommitdiff
path: root/fs/btrfs/scrub.c
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2022-01-21 19:43:51 +0800
committerDavid Sterba <dsterba@suse.com>2022-03-14 13:13:47 +0100
commitc4bf190999953c26070a59172ed01b995521c5ed (patch)
treeca9eb772c16897758b6a3c6f7f82a2714a715ae9 /fs/btrfs/scrub.c
parent823f8e5c1f06a050af61137f171d1f1966b0982c (diff)
downloadlwn-c4bf190999953c26070a59172ed01b995521c5ed.tar.gz
lwn-c4bf190999953c26070a59172ed01b995521c5ed.zip
btrfs: zoned: remove redundant initialization of to_add
to_add is being initialized to len but this is never read as to_add is overwritten later on. Remove the redundant initialization. Cleans up the following clang-analyzer warning: fs/btrfs/extent-tree.c:2769:8: warning: Value stored to 'to_add' during its initialization is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: Nikolay Borisov <nborisov@suse.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>
Diffstat (limited to 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions