Commit 6b436d33 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

ipv4: remove set but unused variable sha

unsigned char *sha (source) was already in original git version
 but was never used.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 49cc91f9
...@@ -498,7 +498,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt ...@@ -498,7 +498,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
struct arphdr *rarp; struct arphdr *rarp;
unsigned char *rarp_ptr; unsigned char *rarp_ptr;
__be32 sip, tip; __be32 sip, tip;
unsigned char *sha, *tha; /* s for "source", t for "target" */ unsigned char *tha; /* t for "target" */
struct ic_device *d; struct ic_device *d;
if (!net_eq(dev_net(dev), &init_net)) if (!net_eq(dev_net(dev), &init_net))
...@@ -549,7 +549,6 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt ...@@ -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 */ goto drop_unlock; /* should never happen */
/* Extract variable-width fields */ /* Extract variable-width fields */
sha = rarp_ptr;
rarp_ptr += dev->addr_len; rarp_ptr += dev->addr_len;
memcpy(&sip, rarp_ptr, 4); memcpy(&sip, rarp_ptr, 4);
rarp_ptr += 4; rarp_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