mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
net: cosmetic: Rename tmp to reply_ip_addr in arp.c
Renamed for clarity Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4545f4e6db
commit
1256793b18
@ -116,7 +116,7 @@ void ArpTimeoutCheck(void)
|
|||||||
void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
|
void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
|
||||||
{
|
{
|
||||||
struct arp_hdr *arp;
|
struct arp_hdr *arp;
|
||||||
IPaddr_t tmp;
|
IPaddr_t reply_ip_addr;
|
||||||
uchar *pkt;
|
uchar *pkt;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -178,10 +178,10 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tmp = NetReadIP(&arp->ar_data[6]);
|
reply_ip_addr = NetReadIP(&arp->ar_data[6]);
|
||||||
|
|
||||||
/* matched waiting packet's address */
|
/* matched waiting packet's address */
|
||||||
if (tmp == NetArpWaitReplyIP) {
|
if (reply_ip_addr == NetArpWaitReplyIP) {
|
||||||
debug("Got ARP REPLY, set eth addr (%pM)\n",
|
debug("Got ARP REPLY, set eth addr (%pM)\n",
|
||||||
arp->ar_data);
|
arp->ar_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user