summaryrefslogtreecommitdiff
path: root/include/linux/usb/sl811.h
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2017-08-28 14:02:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 19:08:47 +0300
commiteb3c74de28b24f5a36d12d6c84f1fceb25d12c4f (patch)
treeeb30f865259f233e31169b04d5456afd9ebf5c8a /include/linux/usb/sl811.h
parent06e74935c77e8605d7d825cd3762cad2c70578ed (diff)
downloadlinux-eb3c74de28b24f5a36d12d6c84f1fceb25d12c4f.tar.xz
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: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/sl811.h')
0 files changed, 0 insertions, 0 deletions