Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xichao Zhao and committed by
Sebastian Reichel
1bafaa15 c3a45c5f

+1 -1
+1 -1
drivers/power/supply/rx51_battery.c
··· 116 116 int mid = (max + min) / 2; 117 117 if (rx51_temp_table2[mid] <= raw) 118 118 min = mid; 119 - else if (rx51_temp_table2[mid] > raw) 119 + else 120 120 max = mid; 121 121 if (rx51_temp_table2[mid] == raw) 122 122 break;