ath6kl: Remove unnecessary retrieval of first list entry in ath6kl_htc_tx_setup_scat_...
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Mon, 26 Sep 2011 09:19:03 +0000 (14:49 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 Sep 2011 07:14:12 +0000 (10:14 +0300)
It is unnecessary to take the first list entry from queue again for
transmission. Sometimes it may look racy when the head of the list
changes between subsequent retrival, but should not happen in
practical.

Reported-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc.c

index 9aa2e44..feed985 100644 (file)
@@ -389,7 +389,6 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target,
 
                rem_scat -= len;
                /* now remove it from the queue */
-               packet = list_first_entry(queue, struct htc_packet, list);
                list_del(&packet->list);
 
                scat_req->scat_list[i].packet = packet;