From ca961b9bc26cc9823ea464ab66ed468684b824b6 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 25 Apr 2017 12:07:28 +0200 Subject: [PATCH] minor whitespace cleanups only --- src/core/netif.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/core/netif.c b/src/core/netif.c index b94ef46e..daaaebde 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -396,9 +396,9 @@ netif_add(struct netif *netif, ip4_addr_debug_print(NETIF_DEBUG, gw); #endif /* LWIP_IPV4 */ LWIP_DEBUGF(NETIF_DEBUG, ("\n")); - + netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL); - + return netif; } @@ -663,7 +663,7 @@ netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask) ip_addr_copy(old_addr, *netif_ip_netmask4(netif)); args.ipv4_nm_changed.old_address = &old_addr; #endif - + /* address is actually being changed? */ if (ip4_addr_cmp(safe_netmask, netif_ip4_netmask(netif)) == 0) { mib2_remove_route_ip4(0, netif); @@ -1489,7 +1489,7 @@ netif_get_by_index(u8_t idx) } } - return NULL; + return NULL; } /** @@ -1549,11 +1549,10 @@ void netif_add_ext_callback(netif_ext_callback_t* callback, netif_ext_callback_f void netif_invoke_ext_callback(struct netif* netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t* args) { netif_ext_callback_t* callback = ext_callback; - + LWIP_ASSERT("netif must be != NULL", netif != NULL); - - while (callback != NULL) - { + + while (callback != NULL) { callback->callback_fn(netif, reason, args); callback = callback->next; }