hwmon: (occ) Delete unnecessary NULL check
authorZiyang Xuan <william.xuanziyang@huawei.com>
Mon, 6 Jun 2022 13:14:01 +0000 (21:14 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:20 +0000 (08:38 -0700)
commit9b00a5f50934b74c61982dcd30b2c21e07d0d317
treeecf61c2b768e17e54eedb0187a19c8166bff0b29
parentf9938eeb97fc786148809be6ca752c0c6baebf49
hwmon: (occ) Delete unnecessary NULL check

kvfree(NULL) is safe. NULL check before kvfree() is not needed.
Delete them to simplify the code.

Generated by coccinelle script:
scripts/coccinelle/free/ifnullfree.cocci

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220606131401.4053036-1-william.xuanziyang@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/p9_sbe.c