diff mbox series

mt76x0: perform mt76x0_mac_set_ampdu_factor

Message ID 1533631417-477-1-git-send-email-sgruszka@redhat.com (mailing list archive)
State Accepted
Commit 1b622bd59e9fc4375febf8697684746211eaeb4a
Delegated to: Kalle Valo
Headers show
Series mt76x0: perform mt76x0_mac_set_ampdu_factor | expand

Commit Message

Stanislaw Gruszka Aug. 7, 2018, 8:43 a.m. UTC
Remove return added accidentally in mt76x0_mac_set_ampdu_factor.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: a77443498137 ("mt76x0: mac files")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/wireless/mediatek/mt76/mt76x0/mac.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Kalle Valo Aug. 9, 2018, 3:08 p.m. UTC | #1
Stanislaw Gruszka <sgruszka@redhat.com> wrote:

> Remove return added accidentally in mt76x0_mac_set_ampdu_factor.
> 
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Fixes: a77443498137 ("mt76x0: mac files")
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>

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

1b622bd59e9f mt76x0: perform mt76x0_mac_set_ampdu_factor
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/mac.c b/drivers/net/wireless/mediatek/mt76/mt76x0/mac.c
index 95f28492a843..91a84be36d3b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/mac.c
@@ -424,8 +424,6 @@  void mt76x0_mac_set_ampdu_factor(struct mt76x0_dev *dev)
 	u8 min_factor = 3;
 	int i;
 
-	return;
-
 	rcu_read_lock();
 	for (i = 0; i < ARRAY_SIZE(dev->wcid); i++) {
 		wcid = rcu_dereference(dev->wcid[i]);