summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xircom/xirc2ps_cs.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 /drivers/net/ethernet/xircom/xirc2ps_cs.c
parentd35cbed6047c0207b4be9ff60b541c331b62b59c (diff)
downloadblackbird-op-linux-6e958051cb0742dd54bb61528c130bd6eaecae0d.tar.gz
blackbird-op-linux-6e958051cb0742dd54bb61528c130bd6eaecae0d.zip
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 'drivers/net/ethernet/xircom/xirc2ps_cs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud