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

b43: 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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200821064218.GA19502@embeddedor

authored by

Gustavo A. R. Silva and committed by
Kalle Valo
7b54281c 3f95e92c

+8 -8
+1 -1
drivers/net/wireless/broadcom/b43/dma.c
··· 1317 1317 switch (queue_prio) { 1318 1318 default: 1319 1319 B43_WARN_ON(1); 1320 - /* fallthrough */ 1320 + fallthrough; 1321 1321 case 0: 1322 1322 ring = dev->dma.tx_ring_AC_VO; 1323 1323 break;
+4 -4
drivers/net/wireless/broadcom/b43/main.c
··· 1874 1874 switch (reason) { 1875 1875 default: 1876 1876 b43dbg(dev->wl, "The panic reason is unknown.\n"); 1877 - /* fallthrough */ 1877 + fallthrough; 1878 1878 case B43_FWPANIC_DIE: 1879 1879 /* Do not restart the controller or firmware. 1880 1880 * The device is nonfunctional from now on. ··· 2268 2268 size = be32_to_cpu(hdr->size); 2269 2269 if (size != ctx->blob->size - sizeof(struct b43_fw_header)) 2270 2270 goto err_format; 2271 - /* fallthrough */ 2271 + fallthrough; 2272 2272 case B43_FW_TYPE_IV: 2273 2273 if (hdr->ver != 1) 2274 2274 goto err_format; ··· 3180 3180 b43_rate_memory_write(dev, B43_OFDM_RATE_36MB, 1); 3181 3181 b43_rate_memory_write(dev, B43_OFDM_RATE_48MB, 1); 3182 3182 b43_rate_memory_write(dev, B43_OFDM_RATE_54MB, 1); 3183 - /* fallthrough */ 3183 + fallthrough; 3184 3184 case B43_PHYTYPE_B: 3185 3185 b43_rate_memory_write(dev, B43_CCK_RATE_1MB, 0); 3186 3186 b43_rate_memory_write(dev, B43_CCK_RATE_2MB, 0); ··· 5331 5331 /* There are 14e4:4321 PCI devs with 2.4 GHz BCM4321 (N-PHY) */ 5332 5332 if (dev->phy.type != B43_PHYTYPE_G) 5333 5333 break; 5334 - /* fall through */ 5334 + fallthrough; 5335 5335 case 0x4313: /* BCM4311 */ 5336 5336 case 0x431a: /* BCM4318 */ 5337 5337 case 0x432a: /* BCM4321 */
+1 -1
drivers/net/wireless/broadcom/b43/phy_n.c
··· 3239 3239 if (!(dev->phy.rev >= 4 && 3240 3240 b43_current_band(dev->wl) == NL80211_BAND_2GHZ)) 3241 3241 break; 3242 - /* FALL THROUGH */ 3242 + fallthrough; 3243 3243 case 0: 3244 3244 case 1: 3245 3245 b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x08), 4, vmid);
+1 -1
drivers/net/wireless/broadcom/b43/pio.c
··· 294 294 switch (queue_prio) { 295 295 default: 296 296 B43_WARN_ON(1); 297 - /* fallthrough */ 297 + fallthrough; 298 298 case 0: 299 299 q = dev->pio.tx_queue_AC_VO; 300 300 break;
+1 -1
drivers/net/wireless/broadcom/b43/tables_nphy.c
··· 3717 3717 case 5: 3718 3718 if (sprom->fem.ghz2.extpa_gain == 3) 3719 3719 return b43_ntab_tx_gain_epa_rev3_hi_pwr_2g; 3720 - /* fall through */ 3720 + fallthrough; 3721 3721 case 4: 3722 3722 case 3: 3723 3723 return b43_ntab_tx_gain_epa_rev3_2g;