Skip to content

Commit

Permalink
[IPV4] ARP: Remove not used code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Ryden authored and David S. Miller committed Dec 20, 2007
1 parent 286e310 commit e0260fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static int arp_process(struct sk_buff *skb)
struct arphdr *arp;
unsigned char *arp_ptr;
struct rtable *rt;
unsigned char *sha, *tha;
unsigned char *sha;
__be32 sip, tip;
u16 dev_type = dev->type;
int addr_type;
Expand Down Expand Up @@ -771,7 +771,6 @@ static int arp_process(struct sk_buff *skb)
arp_ptr += dev->addr_len;
memcpy(&sip, arp_ptr, 4);
arp_ptr += 4;
tha = arp_ptr;
arp_ptr += dev->addr_len;
memcpy(&tip, arp_ptr, 4);
/*
Expand Down

0 comments on commit e0260fe

Please sign in to comment.