diff mbox

mt76x2: remove unnecessary break in mt76x2_mac_process_tx_rate()

Message ID 20180501083354.1252-1-lorenzo.bianconi@redhat.com (mailing list archive)
State Accepted
Commit 8efb868566db107d6d0130ea61a653a29f851661
Delegated to: Kalle Valo
Headers show

Commit Message

Lorenzo Bianconi May 1, 2018, 8:33 a.m. UTC
Remove unnecessary break statement in the default case of bw switch
block in mt76x2_mac_process_tx_rate routine

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
---
 drivers/net/wireless/mediatek/mt76/mt76x2_mac.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Kalle Valo May 4, 2018, 12:36 p.m. UTC | #1
Lorenzo Bianconi <lorenzo.bianconi@redhat.com> wrote:

> Remove unnecessary break statement in the default case of bw switch
> block in mt76x2_mac_process_tx_rate routine
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>

Patch applied to wireless-drivers-next.git, thanks.

8efb868566db mt76x2: remove unnecessary break in mt76x2_mac_process_tx_rate()
diff mbox

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c
index d18315652583..dab713756004 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c
@@ -410,7 +410,6 @@  mt76x2_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate,
 		break;
 	default:
 		return -EINVAL;
-		break;
 	}
 
 	if (rate & MT_RXWI_RATE_SGI)