]> git.sur5r.net Git - u-boot/commitdiff
net: cosmetic: Rename tmp to reply_ip_addr in arp.c
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 07:58:16 +0000 (07:58 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 23 May 2012 22:46:17 +0000 (17:46 -0500)
Renamed for clarity

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
net/arp.c

index 5b16de7cededd64ad464a1fff0fc4ea045fa27eb..d36a642c5498b62066b40a2b52fca1fb4c08d0e4 100644 (file)
--- a/net/arp.c
+++ b/net/arp.c
@@ -116,7 +116,7 @@ void ArpTimeoutCheck(void)
 void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
 {
        struct arp_hdr *arp;
-       IPaddr_t tmp;
+       IPaddr_t reply_ip_addr;
        uchar *pkt;
 
        /*
@@ -178,10 +178,10 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
                }
 #endif
 
-               tmp = NetReadIP(&arp->ar_data[6]);
+               reply_ip_addr = NetReadIP(&arp->ar_data[6]);
 
                /* matched waiting packet's address */
-               if (tmp == NetArpWaitReplyIP) {
+               if (reply_ip_addr == NetArpWaitReplyIP) {
                        debug("Got ARP REPLY, set eth addr (%pM)\n",
                                arp->ar_data);