kernel_optimize_test/drivers/power
Dan Carpenter eb368de6de power: supply: sbs-battery: Fix a signedness bug in sbs_get_battery_capacity()
The "mode" variable is an enum and in this context GCC treats it as an
unsigned int so the error handling is never triggered.

Fixes: 51d0756604 ("bq20z75: Add support for charge properties")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2020-01-14 01:26:14 +01:00
..
avs power: avs: Fix Kconfig indentation 2019-11-29 11:53:36 +01:00
reset power: reset: Fix Kconfig indentation 2019-12-19 02:03:50 +01:00
supply power: supply: sbs-battery: Fix a signedness bug in sbs_get_battery_capacity() 2020-01-14 01:26:14 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00