[PATCH 3/5] c2port: fix return value check in duramar2150_c2port_init().

2012-12-11 Thread Cyril Roelandt
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

[PATCH 3/5] c2port: fix return value check in duramar2150_c2port_init().

2012-12-11 Thread Cyril Roelandt
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