Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200727190417.GA29944@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
29ca39b5 52a1d9d4

+9 -9
+9 -9
drivers/staging/ks7010/ks_wlan_net.c
··· 426 426 priv->reg.rate_set.body[3] = 427 427 TX_RATE_11M; 428 428 i++; 429 - /* fall through */ 429 + fallthrough; 430 430 case 5500000: 431 431 priv->reg.rate_set.body[2] = TX_RATE_5M; 432 432 i++; 433 - /* fall through */ 433 + fallthrough; 434 434 case 2000000: 435 435 priv->reg.rate_set.body[1] = 436 436 TX_RATE_2M | BASIC_RATE; 437 437 i++; 438 - /* fall through */ 438 + fallthrough; 439 439 case 1000000: 440 440 priv->reg.rate_set.body[0] = 441 441 TX_RATE_1M | BASIC_RATE; ··· 491 491 priv->reg.rate_set.body[11] = 492 492 TX_RATE_54M; 493 493 i++; 494 - /* fall through */ 494 + fallthrough; 495 495 case 48000000: 496 496 priv->reg.rate_set.body[10] = 497 497 TX_RATE_48M; 498 498 i++; 499 - /* fall through */ 499 + fallthrough; 500 500 case 36000000: 501 501 priv->reg.rate_set.body[9] = 502 502 TX_RATE_36M; 503 503 i++; 504 - /* fall through */ 504 + fallthrough; 505 505 case 24000000: 506 506 case 18000000: 507 507 case 12000000: ··· 578 578 TX_RATE_6M | BASIC_RATE; 579 579 i++; 580 580 } 581 - /* fall through */ 581 + fallthrough; 582 582 case 5500000: 583 583 priv->reg.rate_set.body[2] = 584 584 TX_RATE_5M | BASIC_RATE; 585 585 i++; 586 - /* fall through */ 586 + fallthrough; 587 587 case 2000000: 588 588 priv->reg.rate_set.body[1] = 589 589 TX_RATE_2M | BASIC_RATE; 590 590 i++; 591 - /* fall through */ 591 + fallthrough; 592 592 case 1000000: 593 593 priv->reg.rate_set.body[0] = 594 594 TX_RATE_1M | BASIC_RATE;