diff options
author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-09-09 10:09:25 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2025-09-18 01:01:03 +0200 |
commit | 1bafaa156ed3881cd4f187ab1c43e408742e1f11 (patch) | |
tree | 9a71a31b02f5c4845c05537e53ec6e7b96adb2f1 | |
parent | c3a45c5fde95d319125812f629c579cc63c69941 (diff) |
power: supply: rx51: remove redundant condition checks
Remove redundant condition checks and replace else if with else.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r-- | drivers/power/supply/rx51_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rx51_battery.c b/drivers/power/supply/rx51_battery.c index 7cdcd415e868..b0220ec2d926 100644 --- a/drivers/power/supply/rx51_battery.c +++ b/drivers/power/supply/rx51_battery.c @@ -116,7 +116,7 @@ static int rx51_battery_read_temperature(struct rx51_device_info *di) int mid = (max + min) / 2; if (rx51_temp_table2[mid] <= raw) min = mid; - else if (rx51_temp_table2[mid] > raw) + else max = mid; if (rx51_temp_table2[mid] == raw) break; |