diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2019-05-04 07:04:07 +0000 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-06-06 13:51:57 +0300 |
commit | 42cc68868ce9d5f5277f561bb17b4746a332bb28 (patch) | |
tree | 5966ef7f933145b039929f0482b1a640d1d56911 /drivers/fpga/zynqmp-fpga.c | |
parent | 066cfd0770aba8a9ac79b59d99530653885d919d (diff) |
usb: gadget: udc: lpc32xx: fix return value check in lpc32xx_udc_probe()
In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
This issue was detected by using the Coccinelle software.
Fixes: 408b56ca5c8e ("usb: gadget: udc: lpc32xx: simplify probe")
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions