summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-08-21 01:20:52 -0500
committerKalle Valo <kvalo@codeaurora.org>2020-08-27 16:05:48 +0300
commit74aad39490a7a63f634750744a7ff49c9eaddb0e (patch)
tree2b19bb24efe126c027857517efe326bbc79f3a56 /drivers/net/wireless/ralink/rt2x00/rt2400pci.c
parent5ae6c8a696cdaebde69e088c3e893b1539eaeee9 (diff)
rt2x00: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200821062052.GA8618@embeddedor
Diffstat (limited to 'drivers/net/wireless/ralink/rt2x00/rt2400pci.c')
-rw-r--r--drivers/net/wireless/ralink/rt2x00/rt2400pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2400pci.c b/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
index c1ac933349d1..c8bb378148c3 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
@@ -1291,7 +1291,7 @@ static void rt2400pci_txdone(struct rt2x00_dev *rt2x00dev,
break;
case 2: /* Failure, excessive retries */
__set_bit(TXDONE_EXCESSIVE_RETRY, &txdesc.flags);
- /* Fall through - this is a failed frame! */
+ fallthrough; /* this is a failed frame! */
default: /* Failure */
__set_bit(TXDONE_FAILURE, &txdesc.flags);
}