提交 3d7f1800 编写于 作者: A Anda-Maria Nicolae 提交者: Sebastian Reichel

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: NAnda-Maria Nicolae <anda-maria.nicolae@intel.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 e31cd782
...@@ -1412,9 +1412,6 @@ static int rt9455_usb_event(struct notifier_block *nb, ...@@ -1412,9 +1412,6 @@ static int rt9455_usb_event(struct notifier_block *nb,
unsigned int opa_mode, iaicr; unsigned int opa_mode, iaicr;
int ret; int ret;
if (!info)
return NOTIFY_DONE;
/* /*
* Determine whether the charger is in charge mode * Determine whether the charger is in charge mode
* or in boost mode. * or in boost mode.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册