summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Linville <linville@tuxdriver.com>2015-01-19 14:02:21 -0500
committerKalle Valo <kvalo@codeaurora.org>2015-01-23 21:16:02 +0200
commit811c69e63a85223dfd865443fde21d8c60569a58 (patch)
treeeadf3f26f1412187193312a34bbfa8545d9758ad
parent362126cddb22256db1e9ab6862aa720c3f091e52 (diff)
downloadlinux-811c69e63a85223dfd865443fde21d8c60569a58.tar.bz2
ath9k_htc: remove dead code in error path of ath9k_htc_txcompletion_cb
This clause is conditioned on htc_hdr != NULL, but it will only be NULL when that check is reached. Coverity: CID 114318 Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_hst.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
index a0ff5b637054..d2408da38c1c 100644
--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
+++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
@@ -351,11 +351,7 @@ void ath9k_htc_txcompletion_cb(struct htc_target *htc_handle,
return;
ret:
- /* HTC-generated packets are freed here. */
- if (htc_hdr && htc_hdr->endpoint_id != ENDPOINT0)
- dev_kfree_skb_any(skb);
- else
- kfree_skb(skb);
+ kfree_skb(skb);
}
static void ath9k_htc_fw_panic_report(struct htc_target *htc_handle,