2
0

007-rt2x00-rt2400pci-mark-expected-switch-fall-through.patch 1016 B

12345678910111213141516171819202122232425
  1. From 6eba8fd2235237784dfd01da55c3210d493aebdb Mon Sep 17 00:00:00 2001
  2. From: "Gustavo A. R. Silva" <[email protected]>
  3. Date: Mon, 22 Oct 2018 22:44:34 +0200
  4. Subject: [PATCH 07/28] rt2x00: rt2400pci: mark expected switch fall-through
  5. In preparation to enabling -Wimplicit-fallthrough, mark switch cases
  6. where we are expecting to fall through.
  7. Signed-off-by: Gustavo A. R. Silva <[email protected]>
  8. Signed-off-by: Kalle Valo <[email protected]>
  9. ---
  10. drivers/net/wireless/ralink/rt2x00/rt2400pci.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. --- a/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
  13. +++ b/drivers/net/wireless/ralink/rt2x00/rt2400pci.c
  14. @@ -1302,7 +1302,7 @@ static void rt2400pci_txdone(struct rt2x
  15. break;
  16. case 2: /* Failure, excessive retries */
  17. __set_bit(TXDONE_EXCESSIVE_RETRY, &txdesc.flags);
  18. - /* Don't break, this is a failed frame! */
  19. + /* Fall through - this is a failed frame! */
  20. default: /* Failure */
  21. __set_bit(TXDONE_FAILURE, &txdesc.flags);
  22. }