mt76: 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 <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Gustavo A. R. Silva
2020-09-08 23:44:29 +02:00
committed by Felix Fietkau
parent f96cffa03e
commit 1ccd31bbe1
11 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ static void mt76u_complete_rx(struct urb *urb)
default:
dev_err_ratelimited(dev->dev, "rx urb failed: %d\n",
urb->status);
/* fall through */
fallthrough;
case 0:
break;
}