Commit 7f6b437e authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

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: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3cf3970
...@@ -360,7 +360,8 @@ static void smc_close_passive_work(struct work_struct *work) ...@@ -360,7 +360,8 @@ static void smc_close_passive_work(struct work_struct *work)
case SMC_PEERCLOSEWAIT1: case SMC_PEERCLOSEWAIT1:
if (rxflags->peer_done_writing) if (rxflags->peer_done_writing)
sk->sk_state = SMC_PEERCLOSEWAIT2; sk->sk_state = SMC_PEERCLOSEWAIT2;
/* fall through to check for closing */ /* fall through */
/* to check for closing */
case SMC_PEERCLOSEWAIT2: case SMC_PEERCLOSEWAIT2:
case SMC_PEERFINCLOSEWAIT: case SMC_PEERFINCLOSEWAIT:
if (!smc_cdc_rxed_any_close(&smc->conn)) if (!smc_cdc_rxed_any_close(&smc->conn))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment