summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorSouptick Joarder (HPE) <jrdr.linux@gmail.com>2022-03-01 06:28:50 +0100
committerSebastian Reichel <sebastian.reichel@collabora.com>2022-03-04 22:22:46 +0100
commitc17f2a53c3f4936d46db0e811366ef030783e9f3 (patch)
tree3fba9408e02288ff4ce3ad6fe6b6d0443ae019aa /drivers/power
parentpower: supply: da9150-fg: Remove unnecessary print function dev_err() (diff)
downloadlinux-c17f2a53c3f4936d46db0e811366ef030783e9f3.tar.xz
linux-c17f2a53c3f4936d46db0e811366ef030783e9f3.zip
power: supply: ab8500: Remove unused variable
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 <lkp@intel.com> Signed-off-by: Souptick Joarder (HPE) <jrdr.linux@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ab8500_chargalg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/power/supply/ab8500_chargalg.c b/drivers/power/supply/ab8500_chargalg.c
index 8842e51b8b1c..cd7de1127a1e 100644
--- a/drivers/power/supply/ab8500_chargalg.c
+++ b/drivers/power/supply/ab8500_chargalg.c
@@ -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);