diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2023-05-11 15:08:20 +0800 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-05-25 12:16:34 +0100 |
commit | af7320ecae0ce646fd2c4a88341a3fbc243553da (patch) | |
tree | bd7d088a1fe6fe1602b0a5c844b4840a50a4687d /drivers/leds/Kconfig | |
parent | 82f80ef5f337e6c66392c58a968244b98542acd2 (diff) | |
download | linux-af7320ecae0ce646fd2c4a88341a3fbc243553da.tar.gz linux-af7320ecae0ce646fd2c4a88341a3fbc243553da.tar.bz2 linux-af7320ecae0ce646fd2c4a88341a3fbc243553da.zip |
leds: trigger: netdev: Remove NULL check before dev_{put, hold}
The call netdev_{put, hold} of dev_{put, hold} will check NULL,
so there is no need to check before using dev_{put, hold},
remove it to silence the warnings:
./drivers/leds/trigger/ledtrig-netdev.c:291:3-10: WARNING: NULL check before dev_{put, hold} functions is not needed.
./drivers/leds/trigger/ledtrig-netdev.c:401:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=4929
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230511070820.52731-1-yang.lee@linux.alibaba.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/Kconfig')
0 files changed, 0 insertions, 0 deletions