Skip to contentSkip to conversation

wifi: mac80211: remove redundant pointer bss

PATCH In review Colin Ian King 2 participants 2 messages Jun 22, 2022 – Jul 27, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mac80211: remove redundant pointer bss

The pointer bss is being assigned a value that is never read, the pointer is redundant and can be removed.

Cleans up clang scan-build warning:
drivers/net/wireless/rsi/rsi_91x_hal.c:362:2: warning: Value stored to 'bss' is never read [deadcode.DeadStores]

---
 drivers/net/wireless/rsi/rsi_91x_hal.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/rsi/rsi_91x_hal.c +0 -2
index 40f9a31f9ca7..c61f83a7333b 100644
@@ -334,7 +334,6 @@ int rsi_send_mgmt_pkt(struct rsi_common *common,
 		      struct sk_buff *skb)
 {
 	struct rsi_hw *adapter = common->priv;
-	struct ieee80211_bss_conf *bss;
 	struct ieee80211_hdr *wh;
 	struct ieee80211_tx_info *info;
 	struct skb_info *tx_params;
@@ -359,7 +358,6 @@ int rsi_send_mgmt_pkt(struct rsi_common *common,
 		return status;
 	}
 
-	bss = &info->control.vif->bss_conf;
 	wh = (struct ieee80211_hdr *)&skb->data[header_size];
 	mgmt_desc = (struct rsi_mgmt_desc *)skb->data;
 	xtend_desc = (struct rsi_xtended_desc *)&skb->data[FRAME_DESC_SZ];
Signature · 1 line
2.35.3
#1 lore raw

Re: wifi: rsi: remove redundant pointer bss

Quoted 8 lines · Colin Ian King

The pointer bss is being assigned a value that is never read, the pointer is redundant and can be removed.

Cleans up clang scan-build warning:
drivers/net/wireless/rsi/rsi_91x_hal.c:362:2: warning: Value stored to 'bss' is never read [deadcode.DeadStores]

Already fixed in: https://git.kernel.org/netdev/net-next/c/9dd9495d560a

Patch set to Superseded.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches