From 1db519b19e6cae97cc8b1ff387e41a0262c2f17c Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Thu, 15 Jun 2017 12:53:11 +0200 Subject: [PATCH] remove obsolete code --- kernel/main.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/main.c b/kernel/main.c index f8d54f47f..80cef7269 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -195,16 +195,11 @@ static int init_netifs(void) * - gw : the gateway wicht should be used * - mmnif_init : the initialization which has to be done in order to use our interface * - ip_input : tells him that he should use ip_input - */ -#if LWIP_TCPIP_CORE_LOCKING_INPUT - if ((err = netifapi_netif_add(&default_netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw), NULL, mmnif_init, ip_input)) != ERR_OK) -#else - /* + * * Note: Our drivers guarantee that the input function will be called in the context of the tcpip thread. * => Therefore, we are able to use ip_input instead of tcpip_input */ if ((err = netifapi_netif_add(&default_netif, ip_2_ip4(&ipaddr), ip_2_ip4(&netmask), ip_2_ip4(&gw), NULL, mmnif_init, ip_input)) != ERR_OK) -#endif { LOG_ERROR("Unable to add the intra network interface: err = %d\n", err); return -ENODEV;