mt76x0: perform mt76x0_mac_set_ampdu_factor
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 7 Aug 2018 08:43:37 +0000 (10:43 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 9 Aug 2018 15:08:06 +0000 (18:08 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x0/mac.c

index 95f2849..91a84be 100644 (file)
@@ -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]);