diff options
| author | Jiapeng Chong <[email protected]> | 2022-12-14 03:23:16 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2023-03-09 23:20:43 +0000 |
| commit | 3268a4d9b0b85a4382e93bdf7be5400a73db74c5 (patch) | |
| tree | a8ed737037bb9c2e4a1744c1855049211a084422 /tools/perf/scripts/python/netdev-times.py | |
| parent | Linux 6.3-rc1 (diff) | |
| download | kernel-3268a4d9b0b85a4382e93bdf7be5400a73db74c5.tar.gz kernel-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 <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Tested-by: Chris Morgan <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
