aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r--drivers/net/slip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index 86718d358395..584809c656d5 100644
--- a/drivers/net/slip.c
+++ b/drivers/net/slip.c
@@ -856,7 +856,9 @@ static int slip_open(struct tty_struct *tty)
856 /* Done. We have linked the TTY line to a channel. */ 856 /* Done. We have linked the TTY line to a channel. */
857 rtnl_unlock(); 857 rtnl_unlock();
858 tty->receive_room = 65536; /* We don't flow control */ 858 tty->receive_room = 65536; /* We don't flow control */
859 return sl->dev->base_addr; 859
860 /* TTY layer expects 0 on success */
861 return 0;
860 862
861err_free_bufs: 863err_free_bufs:
862 sl_free_bufs(sl); 864 sl_free_bufs(sl);