commit | 6e958051cb0742dd54bb61528c130bd6eaecae0d | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyj.lk@gmail.com> | Fri Aug 12 11:22:22 2016 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Aug 15 16:25:59 2016 +0200 |
tree | e327c5002cfbfa1b6d372362b6d41e35bdf624ac | |
parent | d35cbed6047c0207b4be9ff60b541c331b62b59c [diff] |
usbip: vhci_hcd: fix return value check in add_platform_device() 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 <weiyj.lk@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>