fsi: fsi-occ: fix return value check in occ_probe()
authorXu Wang <vulab@iscas.ac.cn>
Mon, 13 Jul 2020 03:33:13 +0000 (03:33 +0000)
committerJoel Stanley <joel@jms.id.au>
Thu, 10 Sep 2020 02:52:47 +0000 (12:22 +0930)
commit3c3c484850bcb4b28f2377e3d641a32c42af949c
tree528756e938f7a7ab43f412a65a25d9dd52e583ba
parent6e0ef7d2cee1abf8a8ff4862f528067c58b3bcc1
fsi: fsi-occ: fix return value check in occ_probe()

In case of error, the function platform_device_register_full()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-occ.c