Skip to content

Commit

Permalink
mt7603: mac: code optimization
Browse files Browse the repository at this point in the history
Remove unnecessary return instruction and time variable in
mt7603_mac_work()

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Jul 15, 2017
1 parent e90a81a commit 8a649c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mt7603_mac.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
}

0 comments on commit 8a649c3

Please sign in to comment.