Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
David S. Miller
4500ebf8 181b1e9c

+31 -31
+17 -17
net/ipv4/raw.c
··· 825 825 static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg) 826 826 { 827 827 switch (cmd) { 828 - case SIOCOUTQ: { 829 - int amount = sk_wmem_alloc_get(sk); 828 + case SIOCOUTQ: { 829 + int amount = sk_wmem_alloc_get(sk); 830 830 831 - return put_user(amount, (int __user *)arg); 832 - } 833 - case SIOCINQ: { 834 - struct sk_buff *skb; 835 - int amount = 0; 831 + return put_user(amount, (int __user *)arg); 832 + } 833 + case SIOCINQ: { 834 + struct sk_buff *skb; 835 + int amount = 0; 836 836 837 - spin_lock_bh(&sk->sk_receive_queue.lock); 838 - skb = skb_peek(&sk->sk_receive_queue); 839 - if (skb != NULL) 840 - amount = skb->len; 841 - spin_unlock_bh(&sk->sk_receive_queue.lock); 842 - return put_user(amount, (int __user *)arg); 843 - } 837 + spin_lock_bh(&sk->sk_receive_queue.lock); 838 + skb = skb_peek(&sk->sk_receive_queue); 839 + if (skb != NULL) 840 + amount = skb->len; 841 + spin_unlock_bh(&sk->sk_receive_queue.lock); 842 + return put_user(amount, (int __user *)arg); 843 + } 844 844 845 - default: 845 + default: 846 846 #ifdef CONFIG_IP_MROUTE 847 - return ipmr_ioctl(sk, cmd, (void __user *)arg); 847 + return ipmr_ioctl(sk, cmd, (void __user *)arg); 848 848 #else 849 - return -ENOIOCTLCMD; 849 + return -ENOIOCTLCMD; 850 850 #endif 851 851 } 852 852 }
+14 -14
net/ipv4/route.c
··· 1439 1439 int code; 1440 1440 1441 1441 switch (rt->dst.error) { 1442 - case EINVAL: 1443 - default: 1444 - goto out; 1445 - case EHOSTUNREACH: 1446 - code = ICMP_HOST_UNREACH; 1447 - break; 1448 - case ENETUNREACH: 1449 - code = ICMP_NET_UNREACH; 1450 - IP_INC_STATS_BH(dev_net(rt->dst.dev), 1451 - IPSTATS_MIB_INNOROUTES); 1452 - break; 1453 - case EACCES: 1454 - code = ICMP_PKT_FILTERED; 1455 - break; 1442 + case EINVAL: 1443 + default: 1444 + goto out; 1445 + case EHOSTUNREACH: 1446 + code = ICMP_HOST_UNREACH; 1447 + break; 1448 + case ENETUNREACH: 1449 + code = ICMP_NET_UNREACH; 1450 + IP_INC_STATS_BH(dev_net(rt->dst.dev), 1451 + IPSTATS_MIB_INNOROUTES); 1452 + break; 1453 + case EACCES: 1454 + code = ICMP_PKT_FILTERED; 1455 + break; 1456 1456 } 1457 1457 1458 1458 if (!rt->peer)