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>
This commit is contained in:
Xichao Zhao 2025-09-09 10:09:25 +08:00 committed by Sebastian Reichel
parent c3a45c5fde
commit 1bafaa156e
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static int rx51_battery_read_temperature(struct rx51_device_info *di)
int mid = (max + min) / 2; int mid = (max + min) / 2;
if (rx51_temp_table2[mid] <= raw) if (rx51_temp_table2[mid] <= raw)
min = mid; min = mid;
else if (rx51_temp_table2[mid] > raw) else
max = mid; max = mid;
if (rx51_temp_table2[mid] == raw) if (rx51_temp_table2[mid] == raw)
break; break;