OSDN Git Service

btrfs: remove redundant NULL check before kvfree
authorYang Li <abaci-bugfix@linux.alibaba.com>
Thu, 21 Jan 2021 08:19:47 +0000 (16:19 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:52 +0000 (22:58 +0100)
commitfe3b7bb085a0b1fb26d622a5eccc7dbb5c4f82fb
tree9025e18f08e20eda54134066ffa7dc8ee926c749
parent7e2a870a599d4699a626ec26430c7a1ab14a2a49
btrfs: remove redundant NULL check before kvfree

Fix below warnings reported by coccicheck:
./fs/btrfs/raid56.c:237:2-8: WARNING: NULL check before some freeing
functions is not needed.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Yang Li <abaci-bugfix@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c