mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 18:37:58 -04:00
Staging: rtl8192e: Remove variable IsAmsdu from rtllib_xmit_inter()
Remove boolean variable, IsAmsdu, and code which does not execute because it is never set to true. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20240612032230.9738-23-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4219b10cfd
commit
6361c82690
@@ -539,7 +539,6 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
|
||||
struct lib80211_crypt_data *crypt = NULL;
|
||||
struct cb_desc *tcb_desc;
|
||||
u8 is_multicast = false;
|
||||
u8 IsAmsdu = false;
|
||||
bool bdhcp = false;
|
||||
|
||||
spin_lock_irqsave(&ieee->lock, flags);
|
||||
@@ -648,11 +647,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
|
||||
ether_addr_copy(header.addr1,
|
||||
ieee->current_network.bssid);
|
||||
ether_addr_copy(header.addr2, src);
|
||||
if (IsAmsdu)
|
||||
ether_addr_copy(header.addr3,
|
||||
ieee->current_network.bssid);
|
||||
else
|
||||
ether_addr_copy(header.addr3, dest);
|
||||
ether_addr_copy(header.addr3, dest);
|
||||
}
|
||||
|
||||
is_multicast = is_multicast_ether_addr(header.addr1);
|
||||
|
||||
Reference in New Issue
Block a user