aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-07-01 05:43:07 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-01 19:11:16 -0400
commit4500ebf8d1cc749e1b438136745127e437c54002 (patch)
tree9a94dccd7da67ee77cddb43dc0998b50b339f0ac
parent181b1e9ce1b9e705d4cd27b542ce05bc43abdab0 (diff)
ipv4: Reduce switch/case indent
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>
-rw-r--r--net/ipv4/raw.c36
-rw-r--r--net/ipv4/route.c28
2 files changed, 32 insertions, 32 deletions
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index c9893d43242e..08526786dc39 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -825,28 +825,28 @@ static int compat_raw_getsockopt(struct sock *sk, int level, int optname,
825static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg) 825static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg)
826{ 826{
827 switch (cmd) { 827 switch (cmd) {
828 case SIOCOUTQ: { 828 case SIOCOUTQ: {
829 int amount = sk_wmem_alloc_get(sk); 829 int amount = sk_wmem_alloc_get(sk);
830 830
831 return put_user(amount, (int __user *)arg); 831 return put_user(amount, (int __user *)arg);
832 } 832 }
833 case SIOCINQ: { 833 case SIOCINQ: {
834 struct sk_buff *skb; 834 struct sk_buff *skb;
835 int amount = 0; 835 int amount = 0;
836 836
837 spin_lock_bh(&sk->sk_receive_queue.lock); 837 spin_lock_bh(&sk->sk_receive_queue.lock);
838 skb = skb_peek(&sk->sk_receive_queue); 838 skb = skb_peek(&sk->sk_receive_queue);
839 if (skb != NULL) 839 if (skb != NULL)
840 amount = skb->len; 840 amount = skb->len;
841 spin_unlock_bh(&sk->sk_receive_queue.lock); 841 spin_unlock_bh(&sk->sk_receive_queue.lock);
842 return put_user(amount, (int __user *)arg); 842 return put_user(amount, (int __user *)arg);
843 } 843 }
844 844
845 default: 845 default:
846#ifdef CONFIG_IP_MROUTE 846#ifdef CONFIG_IP_MROUTE
847 return ipmr_ioctl(sk, cmd, (void __user *)arg); 847 return ipmr_ioctl(sk, cmd, (void __user *)arg);
848#else 848#else
849 return -ENOIOCTLCMD; 849 return -ENOIOCTLCMD;
850#endif 850#endif
851 } 851 }
852} 852}
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index f24c3359e5d0..a8ccd9bca09c 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1439,20 +1439,20 @@ static int ip_error(struct sk_buff *skb)
1439 int code; 1439 int code;
1440 1440
1441 switch (rt->dst.error) { 1441 switch (rt->dst.error) {
1442 case EINVAL: 1442 case EINVAL:
1443 default: 1443 default:
1444 goto out; 1444 goto out;
1445 case EHOSTUNREACH: 1445 case EHOSTUNREACH:
1446 code = ICMP_HOST_UNREACH; 1446 code = ICMP_HOST_UNREACH;
1447 break; 1447 break;
1448 case ENETUNREACH: 1448 case ENETUNREACH:
1449 code = ICMP_NET_UNREACH; 1449 code = ICMP_NET_UNREACH;
1450 IP_INC_STATS_BH(dev_net(rt->dst.dev), 1450 IP_INC_STATS_BH(dev_net(rt->dst.dev),
1451 IPSTATS_MIB_INNOROUTES); 1451 IPSTATS_MIB_INNOROUTES);
1452 break; 1452 break;
1453 case EACCES: 1453 case EACCES:
1454 code = ICMP_PKT_FILTERED; 1454 code = ICMP_PKT_FILTERED;
1455 break; 1455 break;
1456 } 1456 }
1457 1457
1458 if (!rt->peer) 1458 if (!rt->peer)