]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ipv4: Reduce switch/case indent
authorJoe Perches <joe@perches.com>
Fri, 1 Jul 2011 09:43:07 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2011 23:11:16 +0000 (16:11 -0700)
Make the case labels the same indent as the switch.

git diff -w shows no difference.

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

index c9893d43242e52c83580f4676f20793fd5bdf48b..08526786dc3961d16d37eb18609a8ce840c742d3 100644 (file)
@@ -825,28 +825,28 @@ static int compat_raw_getsockopt(struct sock *sk, int level, int optname,
 static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
 {
        switch (cmd) {
-               case SIOCOUTQ: {
-                       int amount = sk_wmem_alloc_get(sk);
+       case SIOCOUTQ: {
+               int amount = sk_wmem_alloc_get(sk);
 
-                       return put_user(amount, (int __user *)arg);
-               }
-               case SIOCINQ: {
-                       struct sk_buff *skb;
-                       int amount = 0;
-
-                       spin_lock_bh(&sk->sk_receive_queue.lock);
-                       skb = skb_peek(&sk->sk_receive_queue);
-                       if (skb != NULL)
-                               amount = skb->len;
-                       spin_unlock_bh(&sk->sk_receive_queue.lock);
-                       return put_user(amount, (int __user *)arg);
-               }
+               return put_user(amount, (int __user *)arg);
+       }
+       case SIOCINQ: {
+               struct sk_buff *skb;
+               int amount = 0;
+
+               spin_lock_bh(&sk->sk_receive_queue.lock);
+               skb = skb_peek(&sk->sk_receive_queue);
+               if (skb != NULL)
+                       amount = skb->len;
+               spin_unlock_bh(&sk->sk_receive_queue.lock);
+               return put_user(amount, (int __user *)arg);
+       }
 
-               default:
+       default:
 #ifdef CONFIG_IP_MROUTE
-                       return ipmr_ioctl(sk, cmd, (void __user *)arg);
+               return ipmr_ioctl(sk, cmd, (void __user *)arg);
 #else
-                       return -ENOIOCTLCMD;
+               return -ENOIOCTLCMD;
 #endif
        }
 }
index f24c3359e5d0056a715e416eb7e50881f846a321..a8ccd9bca09caa273c15941f37429c7aa9c7f14a 100644 (file)
@@ -1439,20 +1439,20 @@ static int ip_error(struct sk_buff *skb)
        int code;
 
        switch (rt->dst.error) {
-               case EINVAL:
-               default:
-                       goto out;
-               case EHOSTUNREACH:
-                       code = ICMP_HOST_UNREACH;
-                       break;
-               case ENETUNREACH:
-                       code = ICMP_NET_UNREACH;
-                       IP_INC_STATS_BH(dev_net(rt->dst.dev),
-                                       IPSTATS_MIB_INNOROUTES);
-                       break;
-               case EACCES:
-                       code = ICMP_PKT_FILTERED;
-                       break;
+       case EINVAL:
+       default:
+               goto out;
+       case EHOSTUNREACH:
+               code = ICMP_HOST_UNREACH;
+               break;
+       case ENETUNREACH:
+               code = ICMP_NET_UNREACH;
+               IP_INC_STATS_BH(dev_net(rt->dst.dev),
+                               IPSTATS_MIB_INNOROUTES);
+               break;
+       case EACCES:
+               code = ICMP_PKT_FILTERED;
+               break;
        }
 
        if (!rt->peer)