power: supply: rk818_battery: Fix compile warning

drivers/power/supply/rk818_battery.c: In function 'rk818_bat_calc_zero_linek':
drivers/power/supply/rk818_battery.c:1741:25: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
 1741 |                         else
      |                         ^~~~
drivers/power/supply/rk818_battery.c:45:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   45 |         do { \
      |         ^~
drivers/power/supply/rk818_battery.c:1743:33: note: in expansion of macro 'DBG'
 1743 |                                 DBG("ZERO-new: zero_linek adjust step6...\n");
      |                                 ^~~

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iefecf6fe6b44ba84850a89a6e8cc12637f801ac0
This commit is contained in:
Tao Huang
2022-11-08 09:25:51 +08:00
parent b7e087fff7
commit 0de1c776b7

View File

@@ -1740,7 +1740,7 @@ static void rk818_bat_calc_zero_linek(struct rk818_battery *di)
di->zero_linek = 1200;
else
di->zero_linek = 800;
DBG("ZERO-new: zero_linek adjust step6...\n");
DBG("ZERO-new: zero_linek adjust step6...\n");
}
} else {
/* xsoc < 0 */