Re: [PATCH net-next] can: ti_hecc: fix return value check in ti_hecc_probe()

2017-04-25 Thread Marc Kleine-Budde
On 04/25/2017 08:44 AM, Wei Yongjun wrote: > From: Wei Yongjun > > 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(). > > Fixes: dabf54dd1c63

[PATCH net-next] can: ti_hecc: fix return value check in ti_hecc_probe()

2017-04-25 Thread Wei Yongjun
From: Wei Yongjun 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(). Fixes: dabf54dd1c63 ("can: ti_hecc: Convert TI HECC driver to DT only driver")