iwlwifi: mvm: reduce usage of IEEE80211_SKB_CB()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Dec 2016 12:33:40 +0000 (13:33 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 3 Feb 2017 14:26:41 +0000 (16:26 +0200)
There's already a variable with the result in scope, use that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c

index ea5d5b0..e2f82c1 100644 (file)
@@ -543,9 +543,9 @@ int iwl_mvm_tx_skb_non_sta(struct iwl_mvm *mvm, struct sk_buff *skb)
         * queue. STATION (HS2.0) uses the auxiliary context of the FW,
         * and hence needs to be sent on the aux queue
         */
-       if (IEEE80211_SKB_CB(skb)->hw_queue == IWL_MVM_OFFCHANNEL_QUEUE &&
+       if (skb_info->hw_queue == IWL_MVM_OFFCHANNEL_QUEUE &&
            skb_info->control.vif->type == NL80211_IFTYPE_STATION)
-               IEEE80211_SKB_CB(skb)->hw_queue = mvm->aux_queue;
+               skb_info->hw_queue = mvm->aux_queue;
 
        memcpy(&info, skb->cb, sizeof(info));