rt2x00: Use unlikely for unexpected error condition in rt2x00_mac_tx
authorHelmut Schaa <[email protected]>
Thu, 3 Mar 2011 18:41:03 +0000 (19:41 +0100)
committerJohn W. Linville <[email protected]>
Fri, 4 Mar 2011 19:06:47 +0000 (14:06 -0500)
rt2x00queue_write_tx_frame is unlikely to fail. Tell the compiler.

Signed-off-by: Helmut Schaa <[email protected]>
Signed-off-by: Ivo van Doorn <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/rt2x00/rt2x00mac.c

index 7714198b9d3e494c4c047760e8de9f524e177023..aeee6e920d987925d4d873c325019e4b36b4c570 100644 (file)
@@ -149,7 +149,7 @@ void rt2x00mac_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
                        goto exit_fail;
        }
 
-       if (rt2x00queue_write_tx_frame(queue, skb, false))
+       if (unlikely(rt2x00queue_write_tx_frame(queue, skb, false)))
                goto exit_fail;
 
        if (rt2x00queue_threshold(queue))