Skip to content
Commit eb3c74de authored by Baolin Wang's avatar Baolin Wang Committed by Greg Kroah-Hartman
Browse files

usb: phy: Avoid unchecked dereference warning



Move the USB phy NULL checking before issuing usb_phy_set_charger_current()
to avoid unchecked dereference warning.

Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 06e74935
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment