aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_route.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-07-01 05:43:03 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-01 19:11:15 -0400
commit06f8fe11bb4a84de9d9faa50c7ffbe40b90d395a (patch)
tree79c244cd97661156649b6af488c4827729da634e /net/decnet/dn_route.c
parent4a9e4b09326baa6db30ae35e3521bf5259b238f5 (diff)
decnet: Reduce switch/case indent
Make the case labels the same indent as the switch. git diff -w shows differences for line wrapping. (fit multiple lines to 80 columns, join where possible) Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r--net/decnet/dn_route.c102
1 files changed, 51 insertions, 51 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 2949ca474ede..fceb86ca0116 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -495,11 +495,11 @@ static int dn_route_rx_packet(struct sk_buff *skb)
495 } 495 }
496 496
497 if ((skb->pkt_type == PACKET_HOST) && (cb->rt_flags & DN_RT_F_RQR)) { 497 if ((skb->pkt_type == PACKET_HOST) && (cb->rt_flags & DN_RT_F_RQR)) {
498 switch(cb->rt_flags & DN_RT_PKT_MSK) { 498 switch (cb->rt_flags & DN_RT_PKT_MSK) {
499 case DN_RT_PKT_SHORT: 499 case DN_RT_PKT_SHORT:
500 return dn_return_short(skb); 500 return dn_return_short(skb);
501 case DN_RT_PKT_LONG: 501 case DN_RT_PKT_LONG:
502 return dn_return_long(skb); 502 return dn_return_long(skb);
503 } 503 }
504 } 504 }
505 505
@@ -652,38 +652,38 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
652 if (unlikely(skb_linearize(skb))) 652 if (unlikely(skb_linearize(skb)))
653 goto dump_it; 653 goto dump_it;
654 654
655 switch(flags & DN_RT_CNTL_MSK) { 655 switch (flags & DN_RT_CNTL_MSK) {
656 case DN_RT_PKT_INIT: 656 case DN_RT_PKT_INIT:
657 dn_dev_init_pkt(skb); 657 dn_dev_init_pkt(skb);
658 break; 658 break;
659 case DN_RT_PKT_VERI: 659 case DN_RT_PKT_VERI:
660 dn_dev_veri_pkt(skb); 660 dn_dev_veri_pkt(skb);
661 break; 661 break;
662 } 662 }
663 663
664 if (dn->parms.state != DN_DEV_S_RU) 664 if (dn->parms.state != DN_DEV_S_RU)
665 goto dump_it; 665 goto dump_it;
666 666
667 switch(flags & DN_RT_CNTL_MSK) { 667 switch (flags & DN_RT_CNTL_MSK) {
668 case DN_RT_PKT_HELO: 668 case DN_RT_PKT_HELO:
669 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, 669 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
670 skb, skb->dev, NULL, 670 skb, skb->dev, NULL,
671 dn_route_ptp_hello); 671 dn_route_ptp_hello);
672 672
673 case DN_RT_PKT_L1RT: 673 case DN_RT_PKT_L1RT:
674 case DN_RT_PKT_L2RT: 674 case DN_RT_PKT_L2RT:
675 return NF_HOOK(NFPROTO_DECNET, NF_DN_ROUTE, 675 return NF_HOOK(NFPROTO_DECNET, NF_DN_ROUTE,
676 skb, skb->dev, NULL, 676 skb, skb->dev, NULL,
677 dn_route_discard); 677 dn_route_discard);
678 case DN_RT_PKT_ERTH: 678 case DN_RT_PKT_ERTH:
679 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, 679 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
680 skb, skb->dev, NULL, 680 skb, skb->dev, NULL,
681 dn_neigh_router_hello); 681 dn_neigh_router_hello);
682 682
683 case DN_RT_PKT_EEDH: 683 case DN_RT_PKT_EEDH:
684 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO, 684 return NF_HOOK(NFPROTO_DECNET, NF_DN_HELLO,
685 skb, skb->dev, NULL, 685 skb, skb->dev, NULL,
686 dn_neigh_endnode_hello); 686 dn_neigh_endnode_hello);
687 } 687 }
688 } else { 688 } else {
689 if (dn->parms.state != DN_DEV_S_RU) 689 if (dn->parms.state != DN_DEV_S_RU)
@@ -691,11 +691,11 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
691 691
692 skb_pull(skb, 1); /* Pull flags */ 692 skb_pull(skb, 1); /* Pull flags */
693 693
694 switch(flags & DN_RT_PKT_MSK) { 694 switch (flags & DN_RT_PKT_MSK) {
695 case DN_RT_PKT_LONG: 695 case DN_RT_PKT_LONG:
696 return dn_route_rx_long(skb); 696 return dn_route_rx_long(skb);
697 case DN_RT_PKT_SHORT: 697 case DN_RT_PKT_SHORT:
698 return dn_route_rx_short(skb); 698 return dn_route_rx_short(skb);
699 } 699 }
700 } 700 }
701 701
@@ -1419,20 +1419,20 @@ make_route:
1419 rt->dst.neighbour = neigh; 1419 rt->dst.neighbour = neigh;
1420 rt->dst.lastuse = jiffies; 1420 rt->dst.lastuse = jiffies;
1421 rt->dst.output = dn_rt_bug; 1421 rt->dst.output = dn_rt_bug;
1422 switch(res.type) { 1422 switch (res.type) {
1423 case RTN_UNICAST: 1423 case RTN_UNICAST:
1424 rt->dst.input = dn_forward; 1424 rt->dst.input = dn_forward;
1425 break; 1425 break;
1426 case RTN_LOCAL: 1426 case RTN_LOCAL:
1427 rt->dst.output = dn_output; 1427 rt->dst.output = dn_output;
1428 rt->dst.input = dn_nsp_rx; 1428 rt->dst.input = dn_nsp_rx;
1429 rt->dst.dev = in_dev; 1429 rt->dst.dev = in_dev;
1430 flags |= RTCF_LOCAL; 1430 flags |= RTCF_LOCAL;
1431 break; 1431 break;
1432 default: 1432 default:
1433 case RTN_UNREACHABLE: 1433 case RTN_UNREACHABLE:
1434 case RTN_BLACKHOLE: 1434 case RTN_BLACKHOLE:
1435 rt->dst.input = dst_discard; 1435 rt->dst.input = dst_discard;
1436 } 1436 }
1437 rt->rt_flags = flags; 1437 rt->rt_flags = flags;
1438 1438