b43: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 b43: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/wireless/broadcom/b43/dma.c | 2 +- drivers/net/wireless/broadcom/b43/main.c | 8 ++++---- drivers/net/wireless/broadcom/b43/phy_n.c | 2 +- drivers/net/wireless/broadcom/b43/pio.c | 2 +- drivers/net/wireless/broadcom/b43/tables_nphy.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
drivers/net/wireless/broadcom/b43/dma.c +1 -1
@@ -1317,7 +1317,7 @@ static struct b43_dmaring *select_ring_by_priority(struct b43_wldev *dev,switch (queue_prio) {default :B43_WARN_ON (1 ); -/* fallthrough */ + fallthrough;case 0 : ring = dev->dma.tx_ring_AC_VO;break ;
drivers/net/wireless/broadcom/b43/main.c +4 -4
@@ -1873,7 +1873,7 @@ static void b43_handle_firmware_panic(struct b43_wldev *dev)switch (reason) {default :b43dbg (dev->wl,"The panic reason is unknown.\n" ); -/* fallthrough */ + fallthrough;case B43_FWPANIC_DIE :/* Do not restart the controller or firmware. * The device is nonfunctional from now on.
@@ -2266,7 +2266,7 @@ int b43_do_request_fw(struct b43_request_fw_context *ctx, size =be32_to_cpu (hdr->size);if (size != ctx->blob->size -sizeof (struct b43_fw_header )) goto err_format; -/* fallthrough */ + fallthrough;case B43_FW_TYPE_IV :if (hdr->ver !=1 ) goto err_format;
@@ -3178,7 +3178,7 @@ static void b43_rate_memory_init(struct b43_wldev *dev)b43_rate_memory_write (dev,B43_OFDM_RATE_36MB ,1 );b43_rate_memory_write (dev,B43_OFDM_RATE_48MB ,1 );b43_rate_memory_write (dev,B43_OFDM_RATE_54MB ,1 ); -/* fallthrough */ + fallthrough;case B43_PHYTYPE_B :b43_rate_memory_write (dev,B43_CCK_RATE_1MB ,0 );b43_rate_memory_write (dev,B43_CCK_RATE_2MB ,0 );
@@ -5329,7 +5329,7 @@ static void b43_supported_bands(struct b43_wldev *dev, bool *have_2ghz_phy,/* There are 14e4:4321 PCI devs with 2.4 GHz BCM4321 (N-PHY) */ if (dev->phy.type !=B43_PHYTYPE_G )break ; -/* fall through */ + fallthrough;case 0x4313 :/* BCM4311 */ case 0x431a :/* BCM4318 */ case 0x432a :/* BCM4321 */
drivers/net/wireless/broadcom/b43/phy_n.c +1 -1
@@ -3239,7 +3239,7 @@ static void b43_nphy_workarounds_rev3plus(struct b43_wldev *dev)if (!(dev->phy.rev >=4 &&b43_current_band (dev->wl) ==NL80211_BAND_2GHZ ))break ; -/* FALL THROUGH */ + fallthrough;case 0 :case 1 :b43_ntab_write_bulk (dev,B43_NTAB16 (8 ,0x08 ),4 , vmid);
drivers/net/wireless/broadcom/b43/pio.c +1 -1
@@ -294,7 +294,7 @@ static struct b43_pio_txqueue *select_queue_by_priority(struct b43_wldev *dev,switch (queue_prio) {default :B43_WARN_ON (1 ); -/* fallthrough */ + fallthrough;case 0 : q = dev->pio.tx_queue_AC_VO;break ;
drivers/net/wireless/broadcom/b43/tables_nphy.c +1 -1
@@ -3717,7 +3717,7 @@ const u32 *b43_nphy_get_tx_gain_table(struct b43_wldev *dev)case 5 :if (sprom->fem.ghz2.extpa_gain ==3 )return b43_ntab_tx_gain_epa_rev3_hi_pwr_2g; -/* fall through */ + fallthrough;case 4 :case 3 :return b43_ntab_tx_gain_epa_rev3_2g;
Signature · 1 line
2.27.0
PATCH 1/1 b43: Use fallthrough pseudo-keyword
Quoted 6 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
7b54281cb685 b43: Use fallthrough pseudo-keyword
Signature · 3 lines
https://patchwork.kernel.org/patch/11728229/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
7b54281cb685 b43: Use fallthrough pseudo-keyword
Signature · 3 lines
https://patchwork.kernel.org/patch/11728229/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches