summaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r--drivers/net/slip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index fe464965e..489f0a39e 100644
--- a/drivers/net/slip.c
+++ b/drivers/net/slip.c
@@ -181,12 +181,14 @@ sl_alloc_bufs(struct slip *sl, int mtu)
sl->xleft = 0;
rbuff = xchg(&sl->rbuff, rbuff);
xbuff = xchg(&sl->xbuff, xbuff);
-#ifdef CONFIG_SLIP_MODE_SLIP6
+#ifdef SL_INCLUDE_CSLIP
cbuff = xchg(&sl->cbuff, cbuff);
slcomp = xchg(&sl->slcomp, slcomp);
+#ifdef CONFIG_SLIP_MODE_SLIP6
sl->xdata = 0;
sl->xbits = 0;
#endif
+#endif
end_bh_atomic();
err = 0;
@@ -1134,7 +1136,7 @@ slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg)
it breaks my old poor gcc on alpha --ANK
*/
tmp = strlen(sl->dev->name) + 1;
- if (copy_to_user(arg, sl->dev->name, tmp) < 0)
+ if (copy_to_user(arg, sl->dev->name, tmp))
return -EFAULT;
return 0;