mt7603: mac: code optimization

Remove unnecessary return instruction and time variable in
mt7603_mac_work()

Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2017-07-15 10:30:56 +02:00
committed by Felix Fietkau
parent e90a81a552
commit 8a649c3b1e
+1 -3
View File
@@ -1256,7 +1256,6 @@ void mt7603_mac_work(struct work_struct *work)
{
struct mt7603_dev *dev = container_of(work, struct mt7603_dev, mac_work.work);
struct sk_buff *skb;
int time = MT7603_WATCHDOG_TIME;
bool reset = false;
spin_lock_bh(&dev->status_lock);
@@ -1304,6 +1303,5 @@ void mt7603_mac_work(struct work_struct *work)
mt7603_mac_watchdog_reset(dev);
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mac_work,
msecs_to_jiffies(time));
return;
msecs_to_jiffies(MT7603_WATCHDOG_TIME));
}