Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63412
b: refs/heads/master
c: 86c1dcf
h: refs/heads/master
v: v3
  • Loading branch information
Florian Zumbiehl authored and David S. Miller committed Jul 31, 2007
1 parent d82f59f commit 1fba35a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 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: c61a7d10efbd187ab9bb54871238ebd1dfcacd44
refs/heads/master: 86c1dcfc96a778433ebc6e9b1d3e80a126cb80f2
9 changes: 5 additions & 4 deletions trunk/drivers/net/pppoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
{
struct sock *sk = sock->sk;
struct pppox_sock *po = pppox_sk(sk);
int val = 0;
int err = 0;
int val;
int err;

switch (cmd) {
case PPPIOCGMRU:
Expand Down Expand Up @@ -754,8 +754,9 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
err = 0;
break;

default:;
};
default:
err = -ENOTTY;
}

return err;
}
Expand Down
11 changes: 4 additions & 7 deletions trunk/drivers/net/pppox.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{
struct sock *sk = sock->sk;
struct pppox_sock *po = pppox_sk(sk);
int rc = 0;
int rc;

lock_sock(sk);

Expand All @@ -94,12 +94,9 @@ int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
break;
}
default:
if (pppox_protos[sk->sk_protocol]->ioctl)
rc = pppox_protos[sk->sk_protocol]->ioctl(sock, cmd,
arg);

break;
};
rc = pppox_protos[sk->sk_protocol]->ioctl ?
pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY;
}

release_sock(sk);
return rc;
Expand Down

0 comments on commit 1fba35a

Please sign in to comment.