econet: Reduce switch/case indent
authorJoe Perches <joe@perches.com>
Fri, 1 Jul 2011 09:43:04 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2011 23:11:15 +0000 (16:11 -0700)
Make the case labels the same indent as the switch.

Simplify a default case / return (unreached)
Remove unnecessary break after return.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/econet/af_econet.c

index a1d9f3787dd5c385ffa7e5cbf3a0b483a0ec9474..5afdc8fc81b1a93b4c0f061f3b3bea0ed11311a0 100644 (file)
@@ -720,23 +720,20 @@ static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg
        struct sock *sk = sock->sk;
        void __user *argp = (void __user *)arg;
 
-       switch(cmd) {
-               case SIOCGSTAMP:
-                       return sock_get_timestamp(sk, argp);
+       switch (cmd) {
+       case SIOCGSTAMP:
+               return sock_get_timestamp(sk, argp);
 
-               case SIOCGSTAMPNS:
-                       return sock_get_timestampns(sk, argp);
+       case SIOCGSTAMPNS:
+               return sock_get_timestampns(sk, argp);
 
-               case SIOCSIFADDR:
-               case SIOCGIFADDR:
-                       return ec_dev_ioctl(sock, cmd, argp);
-                       break;
+       case SIOCSIFADDR:
+       case SIOCGIFADDR:
+               return ec_dev_ioctl(sock, cmd, argp);
 
-               default:
-                       return -ENOIOCTLCMD;
        }
-       /*NOTREACHED*/
-       return 0;
+
+       return -ENOIOCTLCMD;
 }
 
 static const struct net_proto_family econet_family_ops = {