Commit 1bafaa15 authored by Xichao Zhao's avatar Xichao Zhao Committed by Sebastian Reichel
Browse files

power: supply: rx51: remove redundant condition checks



Remove redundant condition checks and replace else if with else.

Signed-off-by: default avatarXichao Zhao <zhao.xichao@vivo.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent c3a45c5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;