mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Minor logic simplification
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user