OSDN Git Service

zd1201: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:41:05 +0000 (12:41 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Dec 2020 08:06:59 +0000 (10:06 +0200)
commit18572b0b54930ecf642a68444b15507c43c07f54
treeb3fe4ccdb2cc8b875212da2113b8f7558712ebed
parent0662fbebf4fb4fb047ee80c2df4f8403094f3cad
zd1201: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
warning by replacing a /* Fall through */ comment with the new
pseudo-keyword macro fallthrough; instead of letting the code fall
through to the next case.

Notice that Clang doesn't recognize /* Fall through */ comments as
implicit fall-through markings.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/52931e343af25f6dab4bd1d604889d2594a861dd.1605896060.git.gustavoars@kernel.org
drivers/net/wireless/zydas/zd1201.c