diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-12-14 04:23:16 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2023-03-10 00:20:43 +0100 |
commit | 3268a4d9b0b85a4382e93bdf7be5400a73db74c5 (patch) | |
tree | a8ed737037bb9c2e4a1744c1855049211a084422 /kernel/rcu/rcu_segcblist.c | |
parent | Linux 6.3-rc1 (diff) | |
download | linux-3268a4d9b0b85a4382e93bdf7be5400a73db74c5.tar.xz linux-3268a4d9b0b85a4382e93bdf7be5400a73db74c5.zip |
power: supply: rk817: Fix unsigned comparison with less than zero
The tmp is defined as u32 type, which results in invalid processing of
tmp<0 in function rk817_read_or_set_full_charge_on_boot(). Therefore,
drop the comparison.
drivers/power/supply/rk817_charger.c:828 rk817_read_or_set_full_charge_on_boot() warn: unsigned 'tmp' is never less than zero.
drivers/power/supply/rk817_charger.c:788 rk817_read_or_set_full_charge_on_boot() warn: unsigned 'tmp' is never less than zero.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3444
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'kernel/rcu/rcu_segcblist.c')
0 files changed, 0 insertions, 0 deletions