summaryrefslogtreecommitdiff
path: root/lib/ioremap.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-12 11:22:22 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 16:25:59 +0200
commit6e958051cb0742dd54bb61528c130bd6eaecae0d (patch)
treee327c5002cfbfa1b6d372362b6d41e35bdf624ac /lib/ioremap.c
parentd35cbed6047c0207b4be9ff60b541c331b62b59c (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>
Diffstat (limited to 'lib/ioremap.c')
0 files changed, 0 insertions, 0 deletions