aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp_synctty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ppp_synctty.c')
-rw-r--r--drivers/net/ppp_synctty.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c
index 801d8f99d471..1e892b7b1f8c 100644
--- a/drivers/net/ppp_synctty.c
+++ b/drivers/net/ppp_synctty.c
@@ -333,9 +333,6 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
333 err = -EFAULT; 333 err = -EFAULT;
334 switch (cmd) { 334 switch (cmd) {
335 case PPPIOCGCHAN: 335 case PPPIOCGCHAN:
336 err = -ENXIO;
337 if (!ap)
338 break;
339 err = -EFAULT; 336 err = -EFAULT;
340 if (put_user(ppp_channel_index(&ap->chan), p)) 337 if (put_user(ppp_channel_index(&ap->chan), p))
341 break; 338 break;
@@ -343,9 +340,6 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
343 break; 340 break;
344 341
345 case PPPIOCGUNIT: 342 case PPPIOCGUNIT:
346 err = -ENXIO;
347 if (!ap)
348 break;
349 err = -EFAULT; 343 err = -EFAULT;
350 if (put_user(ppp_unit_number(&ap->chan), p)) 344 if (put_user(ppp_unit_number(&ap->chan), p))
351 break; 345 break;