From: Anda-Maria Nicolae Date: Fri, 12 Jun 2015 12:25:51 +0000 (+0300) Subject: power_supply: rt9455_charger: Fix error reported by static analysis tool X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d7f1800af0e4a781195770644fc1297217ba71d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Sebastian Reichel --- 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.