iwlwifi: mvm: remove redundant condition
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Dec 2018 11:04:31 +0000 (12:04 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 4 Feb 2019 10:28:06 +0000 (12:28 +0200)
In iwl_mvm_sta_alloc_queue_tvqm(), we know that we have a
station, so no need to check it.

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

index 3ea39bb..27839c1 100644 (file)
@@ -791,11 +791,9 @@ static int iwl_mvm_sta_alloc_queue_tvqm(struct iwl_mvm *mvm,
        if (queue < 0)
                return queue;
 
-       if (sta) {
-               mvmtxq->txq_id = queue;
-               mvm->tvqm_info[queue].txq_tid = tid;
-               mvm->tvqm_info[queue].sta_id = mvmsta->sta_id;
-       }
+       mvmtxq->txq_id = queue;
+       mvm->tvqm_info[queue].txq_tid = tid;
+       mvm->tvqm_info[queue].sta_id = mvmsta->sta_id;
 
        IWL_DEBUG_TX_QUEUES(mvm, "Allocated queue is %d\n", queue);