From 459af6c6e64433f81423e121226a032ec623a658 Mon Sep 17 00:00:00 2001
From: Sylvain Rochet <gradator@gradator.net>
Date: Wed, 11 Mar 2015 21:35:40 +0100
Subject: [PATCH] netif, removed ip_addr,netmask,gw useless initialization in
 netif_add()

ip_addr,netmask,gw are going to be initialized using netif_set_addr()
at the end of netif_add) we don't need to initialize them to zero.
---
 src/core/netif.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/core/netif.c b/src/core/netif.c
index 63caab6..d6ed18e 100644
--- a/src/core/netif.c
+++ b/src/core/netif.c
@@ -186,9 +186,6 @@ netif_add(struct netif *netif, const ip_addr_t *ipaddr, const ip_addr_t *netmask
   LWIP_ASSERT("No init function given", init != NULL);
 
   /* reset new interface configuration state */
-  ip_addr_set_zero(&netif->ip_addr);
-  ip_addr_set_zero(&netif->netmask);
-  ip_addr_set_zero(&netif->gw);
 #if LWIP_IPV6
   for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
     ip6_addr_set_zero(&netif->ip6_addr[i]);
-- 
2.1.4

