summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-07 19:43:18 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-05-12 10:34:04 +0300
commit52b776fa592178c3dc341a93fec7bc760b38cc15 (patch)
tree6e8d317d982e009e4bf20b08281d65be2edbba50 /drivers/net/wireless/ath
parent32221df6765b3773ff1af37c77f8531ebc48f246 (diff)
downloadlinux-52b776fa592178c3dc341a93fec7bc760b38cc15.tar.xz
ath11k: remove redundant initialization of pointer info
Pointer info is being assigned twice, once at the start of the function and secondly when it is just about to be accessed. Remove the redundant initialization and keep the original assignment to info that is close to the memcpy that uses it. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200507164318.56570-1-colin.king@canonical.com
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath11k/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 5ffe55801ca4..4e1185a4cd01 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -3693,7 +3693,7 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)
int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx)
{
struct sk_buff *msdu = skb;
- struct ieee80211_tx_info *info = IEEE80211_SKB_CB(msdu);
+ struct ieee80211_tx_info *info;
struct ath11k *ar = ctx;
struct ath11k_base *ab = ar->ab;