From: Helmut Schaa Date: Thu, 3 Mar 2011 18:41:03 +0000 (+0100) Subject: rt2x00: Use unlikely for unexpected error condition in rt2x00_mac_tx X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=208f19dceeeebcae2f9fb8f88953e2f66949b0f0;p=linux-beck.git rt2x00: Use unlikely for unexpected error condition in rt2x00_mac_tx rt2x00queue_write_tx_frame is unlikely to fail. Tell the compiler. Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 7714198b9d3e..aeee6e920d98 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c @@ -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))