[U-Boot] [PATCH v2 20/21] net: cosmetic: Rename tmp to reply_ip_addr in arp.c
Simon Glass
sjg at chromium.org
Fri Apr 27 08:25:38 CEST 2012
On Wed, Mar 28, 2012 at 12:42 PM, Joe Hershberger <joe.hershberger at ni.com>wrote:
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Joe Hershberger <joe.hershberger at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Mike Frysinger <vapier at gentoo.org>
>
Acked-by: Simon Glass <sjg at chromium.org>
> ---
> Changes for v2:
> - Split from "Improve variable names and code readability"
>
> net/arp.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/net/arp.c b/net/arp.c
> index 3d5dc83..f994e7d 100644
> --- 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);
>
> --
> 1.6.0.2
>
>
More information about the U-Boot
mailing list