From: Wei Yongjun Date: Fri, 25 Oct 2013 09:31:14 +0000 (+0800) Subject: usb: phy: phy-generic: fix return value check in usb_nop_xceiv_register() X-Git-Tag: v3.13-rc4~47^2~15^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8d68f88bcb4e336b308a05d1389e999f0b0c4b0;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed