btrfs: zoned: remove redundant initialization of to_add
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 21 Jan 2022 11:43:51 +0000 (19:43 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Feb 2022 15:35:59 +0000 (16:35 +0100)
commita253b9deb212580cc8844ea331d8b8f9ce7e91db
tree0851502a34a439859645e55b53222d8761149652
parent7048d95bdef2a16c42090cb043800717f6c258ab
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>
fs/btrfs/extent-tree.c