summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorAnda-Maria Nicolae <anda-maria.nicolae@intel.com>2015-06-12 15:25:51 +0300
committerSebastian Reichel <sre@kernel.org>2015-06-13 04:06:44 +0200
commit3d7f1800af0e4a781195770644fc1297217ba71d (patch)
tree48130c8006304138cd8b91a6c9557bd53c563bad /drivers/power
parente31cd7824d054d30ffc9f45550343123bc437e17 (diff)
downloadlinux-3d7f1800af0e4a781195770644fc1297217ba71d.tar.gz
linux-3d7f1800af0e4a781195770644fc1297217ba71d.tar.bz2
linux-3d7f1800af0e4a781195770644fc1297217ba71d.zip
power_supply: rt9455_charger: Fix error reported by static analysis tool
The result of container_of macro cannot be NULL, so there is no need to check whether info is NULL. Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae@intel.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/rt9455_charger.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/power/rt9455_charger.c b/drivers/power/rt9455_charger.c
index de86913037db..08baac6e3ada 100644
--- a/drivers/power/rt9455_charger.c
+++ b/drivers/power/rt9455_charger.c
@@ -1412,9 +1412,6 @@ static int rt9455_usb_event(struct notifier_block *nb,
unsigned int opa_mode, iaicr;
int ret;
- if (!info)
- return NOTIFY_DONE;
-
/*
* Determine whether the charger is in charge mode
* or in boost mode.