]> Git Repo - J-linux.git/commitdiff
power: supply: ab8500: Remove unused variable
authorSouptick Joarder (HPE) <[email protected]>
Tue, 1 Mar 2022 05:28:50 +0000 (10:58 +0530)
committerSebastian Reichel <[email protected]>
Fri, 4 Mar 2022 21:22:46 +0000 (22:22 +0100)
Kernel test robot reported below warning ->
drivers/power/supply/ab8500_chargalg.c:790:13: warning:
variable 'delta_i_ua' set but not used [-Wunused-but-set-variable]

Remove unused variable delta_i_ua.

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Souptick Joarder (HPE) <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/power/supply/ab8500_chargalg.c

index 8842e51b8b1c195546c0411fc33b8723046207f5..cd7de1127a1e8cf6bf87acc7a491759cc5d33e65 100644 (file)
@@ -800,13 +800,10 @@ static void init_maxim_chg_curr(struct ab8500_chargalg *di)
  */
 static enum maxim_ret ab8500_chargalg_chg_curr_maxim(struct ab8500_chargalg *di)
 {
-       int delta_i_ua;
 
        if (!di->bm->maxi->ena_maxi)
                return MAXIM_RET_NOACTION;
 
-       delta_i_ua = di->ccm.original_iset_ua - di->batt_data.inst_curr_ua;
-
        if (di->events.vbus_collapsed) {
                dev_dbg(di->dev, "Charger voltage has collapsed %d\n",
                                di->ccm.wait_cnt);
This page took 0.056294 seconds and 4 git commands to generate.