diff options
author | Joe Perches <joe@perches.com> | 2011-07-01 11:43:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-02 01:11:15 +0200 |
commit | 075e1913e1fd7ef6dc8885fc844cfb6c48210104 (patch) | |
tree | d945d4c19bb2dc3b90e9380a0063af2e85e8b245 /net/econet | |
parent | decnet: Reduce switch/case indent (diff) | |
download | linux-075e1913e1fd7ef6dc8885fc844cfb6c48210104.tar.xz linux-075e1913e1fd7ef6dc8885fc844cfb6c48210104.zip |
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: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/econet')
-rw-r--r-- | net/econet/af_econet.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index a1d9f3787dd5..5afdc8fc81b1 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c @@ -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 = { |