slcan: fix ldisc->open retval
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 10 May 2011 20:12:30 +0000 (13:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2011 22:04:07 +0000 (15:04 -0700)
commit0d4420a90b51abdea71585f571bad6d789ff8eb7
tree5c76c689b532980aed79d171a3547d6001a47687
parentaae1e743fee2b5523fb31ee050295f062cb26a31
slcan: fix ldisc->open retval

TTY layer expects 0 if the ldisc->open operation succeeded.

Reported-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/slcan.c