Skip to content

Commit

Permalink
ipv4: remove set but unused variable sha
Browse files Browse the repository at this point in the history
unsigned char *sha (source) was already in original git version
 but was never used.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabian Frederick authored and David S. Miller committed Oct 27, 2014
1 parent 49cc91f commit 6b436d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ipv4/ipconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
struct arphdr *rarp;
unsigned char *rarp_ptr;
__be32 sip, tip;
unsigned char *sha, *tha; /* s for "source", t for "target" */
unsigned char *tha; /* t for "target" */
struct ic_device *d;

if (!net_eq(dev_net(dev), &init_net))
Expand Down Expand Up @@ -549,7 +549,6 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
goto drop_unlock; /* should never happen */

/* Extract variable-width fields */
sha = rarp_ptr;
rarp_ptr += dev->addr_len;
memcpy(&sip, rarp_ptr, 4);
rarp_ptr += 4;
Expand Down

0 comments on commit 6b436d3

Please sign in to comment.