Skip to content

Commit 29ca39b

Browse files
GustavoARSilvagregkh
authored andcommitted
staging: ks7010: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [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]> Link: https://lore.kernel.org/r/20200727190417.GA29944@embeddedor Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 52a1d9d commit 29ca39b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/staging/ks7010/ks_wlan_net.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,16 +426,16 @@ static int ks_wlan_set_rate(struct net_device *dev,
426426
priv->reg.rate_set.body[3] =
427427
TX_RATE_11M;
428428
i++;
429-
/* fall through */
429+
fallthrough;
430430
case 5500000:
431431
priv->reg.rate_set.body[2] = TX_RATE_5M;
432432
i++;
433-
/* fall through */
433+
fallthrough;
434434
case 2000000:
435435
priv->reg.rate_set.body[1] =
436436
TX_RATE_2M | BASIC_RATE;
437437
i++;
438-
/* fall through */
438+
fallthrough;
439439
case 1000000:
440440
priv->reg.rate_set.body[0] =
441441
TX_RATE_1M | BASIC_RATE;
@@ -491,17 +491,17 @@ static int ks_wlan_set_rate(struct net_device *dev,
491491
priv->reg.rate_set.body[11] =
492492
TX_RATE_54M;
493493
i++;
494-
/* fall through */
494+
fallthrough;
495495
case 48000000:
496496
priv->reg.rate_set.body[10] =
497497
TX_RATE_48M;
498498
i++;
499-
/* fall through */
499+
fallthrough;
500500
case 36000000:
501501
priv->reg.rate_set.body[9] =
502502
TX_RATE_36M;
503503
i++;
504-
/* fall through */
504+
fallthrough;
505505
case 24000000:
506506
case 18000000:
507507
case 12000000:
@@ -578,17 +578,17 @@ static int ks_wlan_set_rate(struct net_device *dev,
578578
TX_RATE_6M | BASIC_RATE;
579579
i++;
580580
}
581-
/* fall through */
581+
fallthrough;
582582
case 5500000:
583583
priv->reg.rate_set.body[2] =
584584
TX_RATE_5M | BASIC_RATE;
585585
i++;
586-
/* fall through */
586+
fallthrough;
587587
case 2000000:
588588
priv->reg.rate_set.body[1] =
589589
TX_RATE_2M | BASIC_RATE;
590590
i++;
591-
/* fall through */
591+
fallthrough;
592592
case 1000000:
593593
priv->reg.rate_set.body[0] =
594594
TX_RATE_1M | BASIC_RATE;

0 commit comments

Comments
 (0)