mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
staging: r8188eu: core: remove unused variable local variable
Remove unused local variable macAddr. Acked-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Link: https://lore.kernel.org/r/YVhpBWhNt7mwfNKU@user Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5cd1aacb80
commit
a5234161b7
|
|
@ -695,8 +695,7 @@ void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb)
|
|||
}
|
||||
}
|
||||
|
||||
void *scdb_findEntry(struct adapter *priv, unsigned char *macAddr,
|
||||
unsigned char *ipAddr)
|
||||
void *scdb_findEntry(struct adapter *priv, unsigned char *ipAddr)
|
||||
{
|
||||
unsigned char networkAddr[MAX_NETWORK_ADDR_LEN];
|
||||
struct nat25_network_db_entry *db;
|
||||
|
|
|
|||
|
|
@ -1575,7 +1575,7 @@ static int rtw_br_client_tx(struct adapter *padapter, struct sk_buff **pskb)
|
|||
if (*((__be16 *)(skb->data + MACADDRLEN * 2)) == __constant_htons(ETH_P_IP)) {
|
||||
if (memcmp(padapter->scdb_mac, skb->data + MACADDRLEN, MACADDRLEN)) {
|
||||
padapter->scdb_entry = (struct nat25_network_db_entry *)scdb_findEntry(padapter,
|
||||
skb->data + MACADDRLEN, skb->data + WLAN_ETHHDR_LEN + 12);
|
||||
skb->data + WLAN_ETHHDR_LEN + 12);
|
||||
if (padapter->scdb_entry) {
|
||||
memcpy(padapter->scdb_mac, skb->data + MACADDRLEN, MACADDRLEN);
|
||||
memcpy(padapter->scdb_ip, skb->data + WLAN_ETHHDR_LEN + 12, 4);
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@ u8 usbvendorrequest(struct dvobj_priv *pdvobjpriv, enum bt_usb_request brequest,
|
|||
int pm_netdev_open(struct net_device *pnetdev, u8 bnormal);
|
||||
void netdev_br_init(struct net_device *netdev);
|
||||
void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb);
|
||||
void *scdb_findEntry(struct adapter *priv, unsigned char *macAddr,
|
||||
unsigned char *ipAddr);
|
||||
void *scdb_findEntry(struct adapter *priv, unsigned char *ipAddr);
|
||||
void nat25_db_expire(struct adapter *priv);
|
||||
int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user