btrfs: remove unneeded NULL checks before kfree
authorzhong jiang <zhongjiang@huawei.com>
Mon, 13 Aug 2018 06:06:08 +0000 (14:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:26 +0000 (17:23 +0200)
commitf8b00e0f06e54efed0dc919518841ad0dd2199cd
treea45ba82fc41faec9f269d9c3f4d83820f0999adc
parent4b6f8e9695da65e29f9f8ee84b39e0ba5b45e8e9
btrfs: remove unneeded NULL checks before kfree

Kfree has taken the NULL pointer into account. So remove the check
before kfree.

The issue is detected with the help of Coccinelle.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c