-
Xu Wang authored
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>
3c3c4848Xu Wang authoredIn 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>
Loading