]> git.baikalelectronics.ru Git - kernel.git/commit
staging: exfat: remove the redundant check when kfree an object in exfat_destroy_inode
authorzhong jiang <zhongjiang@huawei.com>
Wed, 4 Sep 2019 10:03:28 +0000 (18:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 17:14:46 +0000 (19:14 +0200)
commit390fa18c91d56883e53a85e9d4dc545786963cca
treed77e5d5e1229bd17efbefc61dcc703482f0a998e
parentef292f47c546498fb66b5e2269497fd7a991bb74
staging: exfat: remove the redundant check when kfree an object in exfat_destroy_inode

kfree has taken the null check in account. hence it is unnecessary to add the
null check before kfree the object. Just remove it.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Link: https://lore.kernel.org/r/1567591408-24268-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/exfat/exfat_super.c