]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: Avoid unchecked dereference warning
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 28 Aug 2017 11:02:41 +0000 (19:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:08:47 +0000 (18:08 +0200)
commit49f0a60b674e627f1021ab24b5fdda7c15357342
treeeb30f865259f233e31169b04d5456afd9ebf5c8a
parent1690919a536d988a8259ee7884df95a298378ca2
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>
include/linux/usb/phy.h