Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122872
b: refs/heads/master
c: 90f5dfc
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed Dec 26, 2008
1 parent d833f8e commit a9ece77
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 662f44af635f6bde366d44abacaeec7916d9f168
refs/heads/master: 90f5dfcc6afafcc3e1c18298143c1213b071990d
6 changes: 0 additions & 6 deletions trunk/drivers/net/ppp_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,13 @@ ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file,
err = -EFAULT;
switch (cmd) {
case PPPIOCGCHAN:
err = -ENXIO;
if (!ap)
break;
err = -EFAULT;
if (put_user(ppp_channel_index(&ap->chan), p))
break;
err = 0;
break;

case PPPIOCGUNIT:
err = -ENXIO;
if (!ap)
break;
err = -EFAULT;
if (put_user(ppp_unit_number(&ap->chan), p))
break;
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/net/ppp_synctty.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,19 +333,13 @@ ppp_synctty_ioctl(struct tty_struct *tty, struct file *file,
err = -EFAULT;
switch (cmd) {
case PPPIOCGCHAN:
err = -ENXIO;
if (!ap)
break;
err = -EFAULT;
if (put_user(ppp_channel_index(&ap->chan), p))
break;
err = 0;
break;

case PPPIOCGUNIT:
err = -ENXIO;
if (!ap)
break;
err = -EFAULT;
if (put_user(ppp_unit_number(&ap->chan), p))
break;
Expand Down

0 comments on commit a9ece77

Please sign in to comment.