Skip to content
Commit c6b4ee9e authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

sparc64: vcc: Check for IS_ERR() instead of NULL

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

Fixes: ce808b74

 ("sparc64: vcc: TTY driver initialization and cleanup")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cc324d1a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment