The c2port_device_register() function returns ERR_PTR() and never returns NULL,
so the NULL check should be replaced by a call to IS_ERR().
Signed-off-by: Cyril Roelandt
---
drivers/misc/c2port/c2port-duramar2150.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
The c2port_device_register() function returns ERR_PTR() and never returns NULL,
so the NULL check should be replaced by a call to IS_ERR().
Signed-off-by: Cyril Roelandt tipec...@gmail.com
---
drivers/misc/c2port/c2port-duramar2150.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
2 matches
Mail list logo