Skip to content
Commit 9b00a5f5 authored by Ziyang Xuan's avatar Ziyang Xuan Committed by Guenter Roeck
Browse files

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: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
Reviewed-by: default avatarEddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220606131401.4053036-1-william.xuanziyang@huawei.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent f9938eeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment