linux/drivers/hwmon/occ
Ziyang Xuan 9b00a5f509 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>
2022-07-13 08:38:20 -07:00
..
common.c hwmon: (occ) Prevent power cap command overwriting poll response 2022-06-29 13:59:23 -07:00
common.h hwmon: (occ) Prevent power cap command overwriting poll response 2022-06-29 13:59:23 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
p8_i2c.c hwmon: (occ) Prevent power cap command overwriting poll response 2022-06-29 13:59:23 -07:00
p9_sbe.c hwmon: (occ) Delete unnecessary NULL check 2022-07-13 08:38:20 -07:00
sysfs.c hwmon: (occ) Delay hwmon registration until user request 2022-05-20 10:57:06 -07:00