projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e64fa6d
)
carl9170: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Tue, 8 Dec 2020 07:52:57 +0000
(09:52 +0200)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 9 Dec 2020 07:01:29 +0000
(09:01 +0200)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.
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/04257418814755f081fa0ac14a61b01328cdc4ed.1605896059.git.gustavoars@kernel.org
drivers/net/wireless/ath/carl9170/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/carl9170/tx.c
b/drivers/net/wireless/ath/carl9170/tx.c
index 235cf77cd60c5bb170b8c9969c3517b05948dfc7..6b8446ff48c8abdc9f5b9af1dea6e24e773cf1c2 100644
(file)
--- a/
drivers/net/wireless/ath/carl9170/tx.c
+++ b/
drivers/net/wireless/ath/carl9170/tx.c
@@
-840,6
+840,7
@@
static bool carl9170_tx_rts_check(struct ar9170 *ar,
case CARL9170_ERP_RTS:
if (likely(!multi))
return true;
+ break;
default:
break;