ath79: modify device name of I-O DATA WN-AC1600DGR2
[openwrt/staging/mkresin.git] / package / kernel / mac80211 / patches / rt2x00 / 008-rt2x00-rt2500pci-mark-expected-switch-fall-through.patch
1 From 10bb92217747c3384a01ebec005faa2f5e72bbd8 Mon Sep 17 00:00:00 2001
2 From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
3 Date: Mon, 22 Oct 2018 22:45:19 +0200
4 Subject: [PATCH 08/28] rt2x00: rt2500pci: mark expected switch fall-through
5
6 In preparation to enabling -Wimplicit-fallthrough, mark switch cases
7 where we are expecting to fall through.
8
9 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
10 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
11 ---
12 drivers/net/wireless/ralink/rt2x00/rt2500pci.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/net/wireless/ralink/rt2x00/rt2500pci.c
16 +++ b/drivers/net/wireless/ralink/rt2x00/rt2500pci.c
17 @@ -1430,7 +1430,7 @@ static void rt2500pci_txdone(struct rt2x
18 break;
19 case 2: /* Failure, excessive retries */
20 __set_bit(TXDONE_EXCESSIVE_RETRY, &txdesc.flags);
21 - /* Don't break, this is a failed frame! */
22 + /* Fall through - this is a failed frame! */
23 default: /* Failure */
24 __set_bit(TXDONE_FAILURE, &txdesc.flags);
25 }