Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86c92228 authored by Colin Ian King's avatar Colin Ian King Committed by Gerrit - the friendly Code Review server
Browse files

UPSTREAM: ath10k: wmi: remove redundant integer fc



Variable fc is being assigned but never used, so remove it. Cleans
up the clang warning:

warning: Value stored to 'fc' is never read

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
Git-commit: a0709dfd
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Change-Id: I7ed9f7bd667ac2cca675e75789597dc70913a390
Signed-off-by: default avatarDundi Raviteja <dundi@codeaurora.org>
parent fb9a5a22
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2499,7 +2499,6 @@ ath10k_wmi_tlv_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu)
	void *ptr;
	int len;
	u32 buf_len = msdu->len;
	u16 fc;
	struct ath10k_vif *arvif;
	dma_addr_t mgmt_frame_dma;
	u32 vdev_id;
@@ -2508,7 +2507,6 @@ ath10k_wmi_tlv_op_gen_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu)
		return ERR_PTR(-EINVAL);

	hdr = (struct ieee80211_hdr *)msdu->data;
	fc = le16_to_cpu(hdr->frame_control);
	arvif = (void *)cb->vif->drv_priv;
	vdev_id = arvif->vdev_id;