mirror of https://github.com/torvalds/linux.git
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:
parent
c3a45c5fde
commit
1bafaa156e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue