diff options
| author | 2022-06-06 21:14:01 +0800 | |
|---|---|---|
| committer | 2022-07-13 08:38:20 -0700 | |
| commit | 9b00a5f50934b74c61982dcd30b2c21e07d0d317 (patch) | |
| tree | ecf61c2b768e17e54eedb0187a19c8166bff0b29 /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | hwmon: (lm90) Read the channel's label from device-tree (diff) | |
| download | linux-dev-9b00a5f50934b74c61982dcd30b2c21e07d0d317.tar.xz linux-dev-9b00a5f50934b74c61982dcd30b2c21e07d0d317.zip | |
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>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
