power_supply: rt9455_charger: Fix error reported by static analysis tool
authorAnda-Maria Nicolae <anda-maria.nicolae@intel.com>
Fri, 12 Jun 2015 12:25:51 +0000 (15:25 +0300)
committerSebastian Reichel <sre@kernel.org>
Sat, 13 Jun 2015 02:06:44 +0000 (04:06 +0200)
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>
drivers/power/rt9455_charger.c

index de86913037db3637cc3cb329d03bc33bd72321a5..08baac6e3adaa187a7393375a19aa3b3ec772737 100644 (file)
@@ -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.