diff options
author | Mark Ryden <markryde@gmail.com> | 2007-12-20 02:38:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-12-20 02:38:11 -0500 |
commit | e0260feddf8a68301c75cdfff9ec251d5851b006 (patch) | |
tree | e2de76fad9b970a547b848219c146b7534a87aa9 /net/ipv4 | |
parent | 286e310f94b9459f3fa975333781c969b1041522 (diff) |
[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: Mark Ryden <markryde@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/arp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index b3f366a33a5c..08174a2aa878 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -706,7 +706,7 @@ static int arp_process(struct sk_buff *skb) | |||
706 | struct arphdr *arp; | 706 | struct arphdr *arp; |
707 | unsigned char *arp_ptr; | 707 | unsigned char *arp_ptr; |
708 | struct rtable *rt; | 708 | struct rtable *rt; |
709 | unsigned char *sha, *tha; | 709 | unsigned char *sha; |
710 | __be32 sip, tip; | 710 | __be32 sip, tip; |
711 | u16 dev_type = dev->type; | 711 | u16 dev_type = dev->type; |
712 | int addr_type; | 712 | int addr_type; |
@@ -771,7 +771,6 @@ static int arp_process(struct sk_buff *skb) | |||
771 | arp_ptr += dev->addr_len; | 771 | arp_ptr += dev->addr_len; |
772 | memcpy(&sip, arp_ptr, 4); | 772 | memcpy(&sip, arp_ptr, 4); |
773 | arp_ptr += 4; | 773 | arp_ptr += 4; |
774 | tha = arp_ptr; | ||
775 | arp_ptr += dev->addr_len; | 774 | arp_ptr += dev->addr_len; |
776 | memcpy(&tip, arp_ptr, 4); | 775 | memcpy(&tip, arp_ptr, 4); |
777 | /* | 776 | /* |