diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-16 17:36:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 09:13:08 -0400 |
commit | 275757e6bae15a8621130907a78096afd1e15d2c (patch) | |
tree | ee6360a7f2e195c2e8685f9eb6bbb64b60ee5ea4 /net/ipv6/tcp_ipv6.c | |
parent | fb6ff75e18937a20dbec1eb47b5f893f38eabae4 (diff) |
ipv6: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Notice that in some cases I placed the "fall through" comment
on its own line, which is what GCC is expecting to find.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 64d94afa427f..ae83615b7f6d 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1577,8 +1577,9 @@ do_time_wait: | |||
1577 | refcounted = false; | 1577 | refcounted = false; |
1578 | goto process; | 1578 | goto process; |
1579 | } | 1579 | } |
1580 | /* Fall through to ACK */ | ||
1581 | } | 1580 | } |
1581 | /* to ACK */ | ||
1582 | /* fall through */ | ||
1582 | case TCP_TW_ACK: | 1583 | case TCP_TW_ACK: |
1583 | tcp_v6_timewait_ack(sk, skb); | 1584 | tcp_v6_timewait_ack(sk, skb); |
1584 | break; | 1585 | break; |