mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-30 00:00:15 +01:00
remove obsolete code
This commit is contained in:
parent
e4d5236fe4
commit
1db519b19e
1 changed files with 1 additions and 6 deletions
|
@ -195,16 +195,11 @@ static int init_netifs(void)
|
||||||
* - gw : the gateway wicht should be used
|
* - gw : the gateway wicht should be used
|
||||||
* - mmnif_init : the initialization which has to be done in order to use our interface
|
* - 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
|
* - 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.
|
* 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
|
* => 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)
|
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);
|
LOG_ERROR("Unable to add the intra network interface: err = %d\n", err);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
Loading…
Add table
Reference in a new issue