aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2011-09-26 05:19:03 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-27 03:14:12 -0400
commitaad9339fa2a5e5b51874cfec9883819f59090198 (patch)
tree5c3467462e5adea187c89fc211421c47e4782273 /drivers
parent3038fac8d8dbecbda8fe92eb94bf1992e6b60ee4 (diff)
ath6kl: Remove unnecessary retrieval of first list entry in ath6kl_htc_tx_setup_scat_list()
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath6kl/htc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c
index 9aa2e4447900..feed98535c9f 100644
--- a/drivers/net/wireless/ath/ath6kl/htc.c
+++ b/drivers/net/wireless/ath/ath6kl/htc.c
@@ -389,7 +389,6 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target,
389 389
390 rem_scat -= len; 390 rem_scat -= len;
391 /* now remove it from the queue */ 391 /* now remove it from the queue */
392 packet = list_first_entry(queue, struct htc_packet, list);
393 list_del(&packet->list); 392 list_del(&packet->list);
394 393
395 scat_req->scat_list[i].packet = packet; 394 scat_req->scat_list[i].packet = packet;