]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iwlwifi: mvm: remove unused sta_id variable in iwl_mvm_change_queue_owner()
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Nov 2016 08:05:18 +0000 (10:05 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Jan 2017 07:39:01 +0000 (09:39 +0200)
Remove the sta_id variable, to avoid this compile warning when
compiling with W=1:

/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/mvm/sta.c: In function ‘iwl_mvm_change_queue_owner’:
/home/luca/iwlwifi/stack-dev/drivers/net/wireless/intel/iwlwifi/mvm/sta.c:871:5: warning: variable ‘sta_id’ set but not used [-Wunused-but-set-variable]
  s8 sta_id;
     ^

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c

index 636c8b03e31892bd30e3a3d7a6b1e9b8a8eb02ea..cf8222a8b588f067d4acc5f1beb57ff4729eb86a 100644 (file)
@@ -868,7 +868,6 @@ static void iwl_mvm_change_queue_owner(struct iwl_mvm *mvm, int queue)
                .scd_queue = queue,
                .action = SCD_CFG_UPDATE_QUEUE_TID,
        };
-       s8 sta_id;
        int tid;
        unsigned long tid_bitmap;
        int ret;
@@ -876,7 +875,6 @@ static void iwl_mvm_change_queue_owner(struct iwl_mvm *mvm, int queue)
        lockdep_assert_held(&mvm->mutex);
 
        spin_lock_bh(&mvm->queue_info_lock);
-       sta_id = mvm->queue_info[queue].ra_sta_id;
        tid_bitmap = mvm->queue_info[queue].tid_bitmap;
        spin_unlock_bh(&mvm->queue_info_lock);