From 560b643ebd1751ecfee5043f8b43c3dc2d0712c0 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Tue, 7 Aug 2018 10:43:37 +0200 Subject: [PATCH] mt76x0: perform mt76x0_mac_set_ampdu_factor Remove return added accidentally in mt76x0_mac_set_ampdu_factor. Reported-by: Dan Carpenter Fixes: a77443498137 ("mt76x0: mac files") Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo --- mt76x0/mac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mt76x0/mac.c b/mt76x0/mac.c index 95f28492..91a84be3 100644 --- a/mt76x0/mac.c +++ b/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]);