diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-12-14 06:23:16 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2023-03-10 02:20:43 +0300 |
commit | 3268a4d9b0b85a4382e93bdf7be5400a73db74c5 (patch) | |
tree | a8ed737037bb9c2e4a1744c1855049211a084422 /tools/perf/scripts/python/check-perf-trace.py | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) | |
download | linux-3268a4d9b0b85a4382e93bdf7be5400a73db74c5.tar.xz |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions