]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: phy-generic: fix return value check in usb_nop_xceiv_register()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 25 Oct 2013 09:31:14 +0000 (17:31 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 16:56:48 +0000 (10:56 -0600)
commit5793ed06ac175458d99f018ced9f57726fdcaf92
tree0c46b419038619defbeae0fe2bbc8bcf6b395512
parent1c493120de18d2149b61d15b4582ac011ad61255
usb: phy: phy-generic: fix return value check in usb_nop_xceiv_register()

In case of error, the function platform_device_register_simple() 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: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-generic.c