mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 04:56:57 +07:00
mac80211_hwsim: remove shadowing variable
The function here already has a variable hdr that even contains the right thing, so the inner scope's hdr variable that's shadowing the outer one can just be removed. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
538dc90452
commit
f06b7ab875
@ -1333,10 +1333,8 @@ static void mac80211_hwsim_tx(struct ieee80211_hw *hw,
|
|||||||
data->tx_bytes += skb->len;
|
data->tx_bytes += skb->len;
|
||||||
ack = mac80211_hwsim_tx_frame_no_nl(hw, skb, channel);
|
ack = mac80211_hwsim_tx_frame_no_nl(hw, skb, channel);
|
||||||
|
|
||||||
if (ack && skb->len >= 16) {
|
if (ack && skb->len >= 16)
|
||||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
|
|
||||||
mac80211_hwsim_monitor_ack(channel, hdr->addr2);
|
mac80211_hwsim_monitor_ack(channel, hdr->addr2);
|
||||||
}
|
|
||||||
|
|
||||||
ieee80211_tx_info_clear_status(txi);
|
ieee80211_tx_info_clear_status(txi);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user