Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d7f1800 authored by Anda-Maria Nicolae's avatar Anda-Maria Nicolae Committed by Sebastian Reichel
Browse files

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: default avatarAnda-Maria Nicolae <anda-maria.nicolae@intel.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent e31cd782
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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.