Commit 075e1913 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

econet: Reduce switch/case indent

Make the case labels the same indent as the switch.

Simplify a default case / return (unreached)
Remove unnecessary break after return.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06f8fe11
...@@ -720,7 +720,7 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg ...@@ -720,7 +720,7 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg
struct sock *sk = sock->sk; struct sock *sk = sock->sk;
void __user *argp = (void __user *)arg; void __user *argp = (void __user *)arg;
switch(cmd) { switch (cmd) {
case SIOCGSTAMP: case SIOCGSTAMP:
return sock_get_timestamp(sk, argp); return sock_get_timestamp(sk, argp);
...@@ -730,13 +730,10 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg ...@@ -730,13 +730,10 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg
case SIOCSIFADDR: case SIOCSIFADDR:
case SIOCGIFADDR: case SIOCGIFADDR:
return ec_dev_ioctl(sock, cmd, argp); return ec_dev_ioctl(sock, cmd, argp);
break;
default:
return -ENOIOCTLCMD;
} }
/*NOTREACHED*/
return 0; return -ENOIOCTLCMD;
} }
static const struct net_proto_family econet_family_ops = { static const struct net_proto_family econet_family_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment