]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: fix return value check in ci_hdrc_pci_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 6 Feb 2016 14:57:06 +0000 (22:57 +0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 19 Feb 2016 06:13:44 +0000 (14:13 +0800)
commitc750b44d0f1cf623fa9187032b9570ef4d513d9d
tree265a5a72c97177b2e8b18d0a62601dab5f380b70
parent3117e6392f2d7c4890c3cb7865846182df24ada4
usb: chipidea: fix return value check in ci_hdrc_pci_probe()

In case of error, the function usb_phy_generic_register()
returns ERR_PTR() and never returns NULL. The NULL test in
the return value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_pci.c