summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-21 20:35:30 -0500
committerDavid S. Miller <davem@davemloft.net>2017-10-24 18:29:39 +0900
commit7f6b437e9b82a6d702a7f8f75c83ffdec6e03c54 (patch)
tree79cf3e06629ec32b55edf41bf44391d109732215 /net
parente3cf39706b89001fd7f3eba0aa70aa40379eef30 (diff)
downloadlinux-stable-7f6b437e9b82a6d702a7f8f75c83ffdec6e03c54.tar.gz
linux-stable-7f6b437e9b82a6d702a7f8f75c83ffdec6e03c54.tar.bz2
linux-stable-7f6b437e9b82a6d702a7f8f75c83ffdec6e03c54.zip
net: smc_close: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case 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')
-rw-r--r--net/smc/smc_close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/smc/smc_close.c b/net/smc/smc_close.c
index f0d16fb825f7..a6c65595f248 100644
--- a/net/smc/smc_close.c
+++ b/net/smc/smc_close.c
@@ -360,7 +360,8 @@ static void smc_close_passive_work(struct work_struct *work)
case SMC_PEERCLOSEWAIT1:
if (rxflags->peer_done_writing)
sk->sk_state = SMC_PEERCLOSEWAIT2;
- /* fall through to check for closing */
+ /* fall through */
+ /* to check for closing */
case SMC_PEERCLOSEWAIT2:
case SMC_PEERFINCLOSEWAIT:
if (!smc_cdc_rxed_any_close(&smc->conn))