diff options
author | Joe Perches <joe@perches.com> | 2010-05-14 06:58:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-17 20:44:35 -0400 |
commit | ccbd6a5a4f76e821ed36f69fdaf59817c3a7f18e (patch) | |
tree | 9fd681809e588913cc312f63ae0e701f18599afc /net/xfrm | |
parent | 935e2a26b85003c0bd52b6c92712c2f77a5f9d33 (diff) |
net: Remove unnecessary semicolons after switch statements
Also added an explicit break; to avoid
a fallthrough in net/ipv4/tcp_input.c
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_hash.h b/net/xfrm/xfrm_hash.h index 1396572d2ade..8e69533d2313 100644 --- a/net/xfrm/xfrm_hash.h +++ b/net/xfrm/xfrm_hash.h | |||
@@ -55,7 +55,7 @@ static inline unsigned __xfrm_src_hash(xfrm_address_t *daddr, | |||
55 | case AF_INET6: | 55 | case AF_INET6: |
56 | h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); | 56 | h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); |
57 | break; | 57 | break; |
58 | }; | 58 | } |
59 | return (h ^ (h >> 16)) & hmask; | 59 | return (h ^ (h >> 16)) & hmask; |
60 | } | 60 | } |
61 | 61 | ||
@@ -102,7 +102,7 @@ static inline unsigned int __sel_hash(struct xfrm_selector *sel, unsigned short | |||
102 | 102 | ||
103 | h = __xfrm6_daddr_saddr_hash(daddr, saddr); | 103 | h = __xfrm6_daddr_saddr_hash(daddr, saddr); |
104 | break; | 104 | break; |
105 | }; | 105 | } |
106 | h ^= (h >> 16); | 106 | h ^= (h >> 16); |
107 | return h & hmask; | 107 | return h & hmask; |
108 | } | 108 | } |
@@ -119,7 +119,7 @@ static inline unsigned int __addr_hash(xfrm_address_t *daddr, xfrm_address_t *sa | |||
119 | case AF_INET6: | 119 | case AF_INET6: |
120 | h = __xfrm6_daddr_saddr_hash(daddr, saddr); | 120 | h = __xfrm6_daddr_saddr_hash(daddr, saddr); |
121 | break; | 121 | break; |
122 | }; | 122 | } |
123 | h ^= (h >> 16); | 123 | h ^= (h >> 16); |
124 | return h & hmask; | 124 | return h & hmask; |
125 | } | 125 | } |