sparc64: vcc: Check for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 26 Aug 2017 06:12:05 +0000 (09:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 22:39:55 +0000 (15:39 -0700)
commitc6b4ee9eba97b64750d5e8be31c04b70592592b7
tree6e112756f279016f31a68fda3c47f49c839df76c
parentcc324d1a3e3549203649b54209dd235e723a8f61
sparc64: vcc: Check for IS_ERR() instead of NULL

The tty_alloc_driver() function never returns NULL, it returns error
pointers on error.

Fixes: ce808b746325 ("sparc64: vcc: TTY driver initialization and cleanup")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/tty/vcc.c