Skip to content
Commit 3c3c4848 authored by vulab's avatar vulab Committed by Joel Stanley
Browse files

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: default avatarXu Wang <vulab@iscas.ac.cn>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 6e0ef7d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment