Commit e0260fed authored by Mark Ryden's avatar Mark Ryden Committed by David S. Miller

[IPV4] ARP: Remove not used code

In arp_process() (net/ipv4/arp.c), there is unused code: definition
and assignment of tha (target hw address ).
Signed-off-by: default avatarMark Ryden <markryde@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 286e310f
...@@ -706,7 +706,7 @@ static int arp_process(struct sk_buff *skb) ...@@ -706,7 +706,7 @@ static int arp_process(struct sk_buff *skb)
struct arphdr *arp; struct arphdr *arp;
unsigned char *arp_ptr; unsigned char *arp_ptr;
struct rtable *rt; struct rtable *rt;
unsigned char *sha, *tha; unsigned char *sha;
__be32 sip, tip; __be32 sip, tip;
u16 dev_type = dev->type; u16 dev_type = dev->type;
int addr_type; int addr_type;
...@@ -771,7 +771,6 @@ static int arp_process(struct sk_buff *skb) ...@@ -771,7 +771,6 @@ static int arp_process(struct sk_buff *skb)
arp_ptr += dev->addr_len; arp_ptr += dev->addr_len;
memcpy(&sip, arp_ptr, 4); memcpy(&sip, arp_ptr, 4);
arp_ptr += 4; arp_ptr += 4;
tha = arp_ptr;
arp_ptr += dev->addr_len; arp_ptr += dev->addr_len;
memcpy(&tip, arp_ptr, 4); memcpy(&tip, arp_ptr, 4);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment