mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
e31cd7824d
commit
3d7f1800af
1 changed files with 0 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue