diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-04-20 20:09:22 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:24 -0400 |
commit | 3ff50b7997fe06cd5d276b229967bb52d6b3b6c1 (patch) | |
tree | 4f0f57123a945c3e6c39759456b6187bb78c4b1f /net/ipv6 | |
parent | c462238d6a6d8ee855bda10f9fff442971540ed2 (diff) |
[NET]: cleanup extra semicolons
Spring cleaning time...
There seems to be a lot of places in the network code that have
extra bogus semicolons after conditionals. Most commonly is a
bogus semicolon after: switch() { }
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 4 | ||||
-rw-r--r-- | net/ipv6/datagram.c | 2 | ||||
-rw-r--r-- | net/ipv6/exthdrs.c | 2 | ||||
-rw-r--r-- | net/ipv6/icmp.c | 5 | ||||
-rw-r--r-- | net/ipv6/ndisc.c | 2 | ||||
-rw-r--r-- | net/ipv6/raw.c | 14 | ||||
-rw-r--r-- | net/ipv6/route.c | 2 | ||||
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 5 |
8 files changed, 20 insertions, 16 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 9ba9e92d1934..33ccc95c349b 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2288,7 +2288,7 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, | |||
2288 | default: | 2288 | default: |
2289 | addrconf_dev_config(dev); | 2289 | addrconf_dev_config(dev); |
2290 | break; | 2290 | break; |
2291 | }; | 2291 | } |
2292 | if (idev) { | 2292 | if (idev) { |
2293 | if (run_pending) | 2293 | if (run_pending) |
2294 | addrconf_dad_run(idev); | 2294 | addrconf_dad_run(idev); |
@@ -2341,7 +2341,7 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, | |||
2341 | } | 2341 | } |
2342 | #endif | 2342 | #endif |
2343 | break; | 2343 | break; |
2344 | }; | 2344 | } |
2345 | 2345 | ||
2346 | return NOTIFY_OK; | 2346 | return NOTIFY_OK; |
2347 | } | 2347 | } |
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index 4a355fea4098..403eee66b9c5 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c | |||
@@ -723,7 +723,7 @@ int datagram_send_ctl(struct msghdr *msg, struct flowi *fl, | |||
723 | cmsg->cmsg_type); | 723 | cmsg->cmsg_type); |
724 | err = -EINVAL; | 724 | err = -EINVAL; |
725 | break; | 725 | break; |
726 | }; | 726 | } |
727 | } | 727 | } |
728 | 728 | ||
729 | exit_f: | 729 | exit_f: |
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 275d2e812a44..4aa7fb024b3a 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
@@ -130,7 +130,7 @@ static int ip6_tlvopt_unknown(struct sk_buff **skbp, int optoff) | |||
130 | case 2: /* send ICMP PARM PROB regardless and drop packet */ | 130 | case 2: /* send ICMP PARM PROB regardless and drop packet */ |
131 | icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); | 131 | icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); |
132 | return 0; | 132 | return 0; |
133 | }; | 133 | } |
134 | 134 | ||
135 | kfree_skb(skb); | 135 | kfree_skb(skb); |
136 | return 0; | 136 | return 0; |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index e94992ab92e6..e9bcce9e7bdf 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -732,7 +732,8 @@ static int icmpv6_rcv(struct sk_buff **pskb) | |||
732 | */ | 732 | */ |
733 | 733 | ||
734 | icmpv6_notify(skb, type, hdr->icmp6_code, hdr->icmp6_mtu); | 734 | icmpv6_notify(skb, type, hdr->icmp6_code, hdr->icmp6_mtu); |
735 | }; | 735 | } |
736 | |||
736 | kfree_skb(skb); | 737 | kfree_skb(skb); |
737 | return 0; | 738 | return 0; |
738 | 739 | ||
@@ -865,7 +866,7 @@ int icmpv6_err_convert(int type, int code, int *err) | |||
865 | case ICMPV6_TIME_EXCEED: | 866 | case ICMPV6_TIME_EXCEED: |
866 | *err = EHOSTUNREACH; | 867 | *err = EHOSTUNREACH; |
867 | break; | 868 | break; |
868 | }; | 869 | } |
869 | 870 | ||
870 | return fatal; | 871 | return fatal; |
871 | } | 872 | } |
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index b1cf70816477..4ee1216f8018 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1630,7 +1630,7 @@ int ndisc_rcv(struct sk_buff *skb) | |||
1630 | case NDISC_REDIRECT: | 1630 | case NDISC_REDIRECT: |
1631 | ndisc_redirect_rcv(skb); | 1631 | ndisc_redirect_rcv(skb); |
1632 | break; | 1632 | break; |
1633 | }; | 1633 | } |
1634 | 1634 | ||
1635 | return 0; | 1635 | return 0; |
1636 | } | 1636 | } |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index f65fcd7704ca..009a1047fc3f 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -882,7 +882,7 @@ static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, | |||
882 | return 0; | 882 | return 0; |
883 | default: | 883 | default: |
884 | return -ENOPROTOOPT; | 884 | return -ENOPROTOOPT; |
885 | }; | 885 | } |
886 | 886 | ||
887 | return 0; | 887 | return 0; |
888 | } | 888 | } |
@@ -907,7 +907,7 @@ static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, | |||
907 | return 0; | 907 | return 0; |
908 | default: | 908 | default: |
909 | return -ENOPROTOOPT; | 909 | return -ENOPROTOOPT; |
910 | }; | 910 | } |
911 | 911 | ||
912 | return 0; | 912 | return 0; |
913 | } | 913 | } |
@@ -961,7 +961,8 @@ static int rawv6_setsockopt(struct sock *sk, int level, int optname, | |||
961 | default: | 961 | default: |
962 | return ipv6_setsockopt(sk, level, optname, optval, | 962 | return ipv6_setsockopt(sk, level, optname, optval, |
963 | optlen); | 963 | optlen); |
964 | }; | 964 | } |
965 | |||
965 | return do_rawv6_setsockopt(sk, level, optname, optval, optlen); | 966 | return do_rawv6_setsockopt(sk, level, optname, optval, optlen); |
966 | } | 967 | } |
967 | 968 | ||
@@ -982,7 +983,7 @@ static int compat_rawv6_setsockopt(struct sock *sk, int level, int optname, | |||
982 | default: | 983 | default: |
983 | return compat_ipv6_setsockopt(sk, level, optname, | 984 | return compat_ipv6_setsockopt(sk, level, optname, |
984 | optval, optlen); | 985 | optval, optlen); |
985 | }; | 986 | } |
986 | return do_rawv6_setsockopt(sk, level, optname, optval, optlen); | 987 | return do_rawv6_setsockopt(sk, level, optname, optval, optlen); |
987 | } | 988 | } |
988 | #endif | 989 | #endif |
@@ -1035,7 +1036,8 @@ static int rawv6_getsockopt(struct sock *sk, int level, int optname, | |||
1035 | default: | 1036 | default: |
1036 | return ipv6_getsockopt(sk, level, optname, optval, | 1037 | return ipv6_getsockopt(sk, level, optname, optval, |
1037 | optlen); | 1038 | optlen); |
1038 | }; | 1039 | } |
1040 | |||
1039 | return do_rawv6_getsockopt(sk, level, optname, optval, optlen); | 1041 | return do_rawv6_getsockopt(sk, level, optname, optval, optlen); |
1040 | } | 1042 | } |
1041 | 1043 | ||
@@ -1056,7 +1058,7 @@ static int compat_rawv6_getsockopt(struct sock *sk, int level, int optname, | |||
1056 | default: | 1058 | default: |
1057 | return compat_ipv6_getsockopt(sk, level, optname, | 1059 | return compat_ipv6_getsockopt(sk, level, optname, |
1058 | optval, optlen); | 1060 | optval, optlen); |
1059 | }; | 1061 | } |
1060 | return do_rawv6_getsockopt(sk, level, optname, optval, optlen); | 1062 | return do_rawv6_getsockopt(sk, level, optname, optval, optlen); |
1061 | } | 1063 | } |
1062 | #endif | 1064 | #endif |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 70f760f069b1..6264ec3bb154 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -1760,7 +1760,7 @@ int ipv6_route_ioctl(unsigned int cmd, void __user *arg) | |||
1760 | rtnl_unlock(); | 1760 | rtnl_unlock(); |
1761 | 1761 | ||
1762 | return err; | 1762 | return err; |
1763 | }; | 1763 | } |
1764 | 1764 | ||
1765 | return -EINVAL; | 1765 | return -EINVAL; |
1766 | } | 1766 | } |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index ef746d4f3131..1faa2ea80afc 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -240,7 +240,8 @@ __xfrm6_bundle_create(struct xfrm_policy *policy, struct xfrm_state **xfrm, int | |||
240 | if (!afinfo) { | 240 | if (!afinfo) { |
241 | dst = *dst_p; | 241 | dst = *dst_p; |
242 | goto error; | 242 | goto error; |
243 | }; | 243 | } |
244 | |||
244 | dst_prev->output = afinfo->output; | 245 | dst_prev->output = afinfo->output; |
245 | xfrm_state_put_afinfo(afinfo); | 246 | xfrm_state_put_afinfo(afinfo); |
246 | /* Sheit... I remember I did this right. Apparently, | 247 | /* Sheit... I remember I did this right. Apparently, |
@@ -337,7 +338,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl) | |||
337 | fl->fl_ipsec_spi = 0; | 338 | fl->fl_ipsec_spi = 0; |
338 | fl->proto = nexthdr; | 339 | fl->proto = nexthdr; |
339 | return; | 340 | return; |
340 | }; | 341 | } |
341 | } | 342 | } |
342 | } | 343 | } |
343 | 344 | ||