]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: mt76x02: remove useless return in mt76x02_resync_beacon_timer
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 1 May 2019 13:44:25 +0000 (15:44 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 25 Jun 2019 10:55:25 +0000 (12:55 +0200)
Remove useless return statment in mt76x02_resync_beacon_timer routine

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c

index e196b9c0a6861545facb602d744171662edb48f8..d61c686e08de78b641d6e3d4b1695e156e2e87d8 100644 (file)
@@ -189,10 +189,8 @@ mt76x02_resync_beacon_timer(struct mt76x02_dev *dev)
        mt76_rmw_field(dev, MT_BEACON_TIME_CFG,
                       MT_BEACON_TIME_CFG_INTVAL, timer_val);
 
-       if (dev->tbtt_count >= 64) {
+       if (dev->tbtt_count >= 64)
                dev->tbtt_count = 0;
-               return;
-       }
 }
 EXPORT_SYMBOL_GPL(mt76x02_resync_beacon_timer);