aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ppp_async.c6
-rw-r--r--drivers/net/ppp_synctty.c6
2 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c
index 451bdb57d6fc..6567fabd2e13 100644
--- a/drivers/net/ppp_async.c
+++ b/drivers/net/ppp_async.c
@@ -293,9 +293,6 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
293 err = -EFAULT; 293 err = -EFAULT;
294 switch (cmd) { 294 switch (cmd) {
295 case PPPIOCGCHAN: 295 case PPPIOCGCHAN:
296 err = -ENXIO;
297 if (!ap)
298 break;
299 err = -EFAULT; 296 err = -EFAULT;
300 if (put_user(ppp_channel_index(&ap->chan), p)) 297 if (put_user(ppp_channel_index(&ap->chan), p))
301 break; 298 break;
@@ -303,9 +300,6 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
303 break; 300 break;
304 301
305 case PPPIOCGUNIT: 302 case PPPIOCGUNIT:
306 err = -ENXIO;
307 if (!ap)
308 break;
309 err = -EFAULT; 303 err = -EFAULT;
310 if (put_user(ppp_unit_number(&ap->chan), p)) 304 if (put_user(ppp_unit_number(&ap->chan), p))
311 break; 305 break;
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;