Minor logic simplification

This commit is contained in:
Gregory Nutt 2015-02-04 21:06:11 -06:00
parent 28b89b7a65
commit 453c25cdbb
1 changed files with 1 additions and 3 deletions

View File

@ -513,8 +513,6 @@ int icmpv6_autoconfig(FAR struct net_driver_s *dev)
{
ndbg("ERROR: Failed send neighbor advertisement: %d\n", ret);
netdev_ifdown(dev);
net_unlock(save);
return ret;
}
/* Leave the network up and return success (even though things did not
@ -522,7 +520,7 @@ int icmpv6_autoconfig(FAR struct net_driver_s *dev)
*/
net_unlock(save);
return OK;
return ret;
}
/* 5. Router Direction: The router provides direction to the node on how to