projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362126c
)
ath9k_htc: remove dead code in error path of ath9k_htc_txcompletion_cb
author
John Linville
<linville@tuxdriver.com>
Mon, 19 Jan 2015 19:02:21 +0000
(14:02 -0500)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 23 Jan 2015 19:16:02 +0000
(21:16 +0200)
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>
drivers/net/wireless/ath/ath9k/htc_hst.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/htc_hst.c
b/drivers/net/wireless/ath/ath9k/htc_hst.c
index
a0ff5b6
..
d2408da
100644
(file)
--- 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,