aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pppoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pppoe.c')
-rw-r--r--drivers/net/pppoe.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 6f98834e6ace..f75aeaaf861f 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -664,8 +664,8 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
664{ 664{
665 struct sock *sk = sock->sk; 665 struct sock *sk = sock->sk;
666 struct pppox_sock *po = pppox_sk(sk); 666 struct pppox_sock *po = pppox_sk(sk);
667 int val = 0; 667 int val;
668 int err = 0; 668 int err;
669 669
670 switch (cmd) { 670 switch (cmd) {
671 case PPPIOCGMRU: 671 case PPPIOCGMRU:
@@ -754,8 +754,9 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd,
754 err = 0; 754 err = 0;
755 break; 755 break;
756 756
757 default:; 757 default:
758 }; 758 err = -ENOTTY;
759 }
759 760
760 return err; 761 return err;
761} 762}