ath5k: remove duplicated re-assignment to pointer 'tq'
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Feb 2018 18:03:27 +0000 (18:03 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:45:48 +0000 (18:45 +0200)
Pointer tq is initialized with &ah->ah_txq[queue] and then a few
lines later is re-assigned the same value, hence this duplicate
assignment is redundant and can be removed.

Cleans up clang warning:
drivers/net/wireless/ath/ath5k/qcu.c:326:25: warning: Value stored
to 'tq' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath5k/qcu.c

index beda11ce34a737a6fba3269c36ae2d47b4cd1369..147947f632f703040722e73ce39d3a0de488ddbb 100644 (file)
@@ -327,8 +327,6 @@ ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue)
 
        AR5K_ASSERT_ENTRY(queue, ah->ah_capabilities.cap_queues.q_tx_num);
 
-       tq = &ah->ah_txq[queue];
-
        /* Skip if queue inactive or if we are on AR5210
         * that doesn't have QCU/DCU */
        if ((ah->ah_version == AR5K_AR5210) ||