Skip to content

Commit

Permalink
tx: remove spurious semicolon
Browse files Browse the repository at this point in the history
Remove spurious semicolon resulting in ieee80211_sta_set_buffered()
being always called independent from the result of the expression
evaluated by the preceding if-clause.

Spotted by gcc-6 while attempting to build the driver outside of the
buildroot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt authored and nbd168 committed Jul 8, 2016
1 parent f06ed81 commit 9226e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tx.c
Expand Up @@ -198,7 +198,7 @@ mt76_txq_dequeue(struct mt76_dev *dev, struct mt76_txq *mtxq, bool ps)
if (skb) {
u8 tid = skb->priority & IEEE80211_QOS_CTL_TID_MASK;

if (ps && skb_queue_empty(&mtxq->retry_q));
if (ps && skb_queue_empty(&mtxq->retry_q))
ieee80211_sta_set_buffered(txq->sta, tid, false);

return skb;
Expand Down

0 comments on commit 9226e96

Please sign in to comment.