rt2x00: Minor optimization for devices with RTS/CTS offload
authorHelmut Schaa <helmut.schaa@googlemail.com>
Sun, 20 Feb 2011 12:55:46 +0000 (13:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Feb 2011 20:39:59 +0000 (15:39 -0500)
commit430df7980ef1a522ad2fd1d06e1b6655f2d9320f
treec6551b76448d4d1c68cb1bfc149c1a8ef0f3a681
parente90c54b2358559bd305ff08096e077d2a7f02bf3
rt2x00: Minor optimization for devices with RTS/CTS offload

Only devices that don't have RTS/CTS offload need to check for
IEEE80211_TX_RC_USE_RTS_CTS and IEEE80211_TX_RC_USE_CTS_PROTECT.

By swapping both conditions we keep the same number of needed conditionals
for devices without RTS/CTS offload but save one conditional on devices
with RTS/CTS offload.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c