]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 8 Dec 2020 07:52:57 +0000 (09:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 9 Dec 2020 07:01:32 +0000 (09:01 +0200)
commit3e0ef09705622b28177173a52d282d80c5928a94
tree3e31a44cc399df9521312a65998f5068bcbba5c7
parent026281bf78528167f14cbf2ee94b1b629f67fe69
wcn36xx: 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/f932c887e013767cbdabfdddd671086e8ae63193.1605896060.git.gustavoars@kernel.org
drivers/net/wireless/ath/wcn36xx/smd.c