mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 16:50:21 +00:00
Eliminate CONFIG_NO_NOINTS. Lots of files changed -> lots of testing needed.
This commit is contained in:
parent
bdb8275824
commit
7467329a98
180 changed files with 1481 additions and 5157 deletions
|
|
@ -76,11 +76,10 @@
|
|||
FAR struct net_driver_s *netdev_default(void)
|
||||
{
|
||||
FAR struct net_driver_s *dev;
|
||||
net_lock_t save;
|
||||
|
||||
/* Examine each registered network device */
|
||||
|
||||
save = net_lock();
|
||||
net_lock();
|
||||
for (dev = g_netdevices; dev; dev = dev->flink)
|
||||
{
|
||||
/* Is the interface in the "up" state? */
|
||||
|
|
@ -91,12 +90,12 @@ FAR struct net_driver_s *netdev_default(void)
|
|||
* state.
|
||||
*/
|
||||
|
||||
net_unlock(save);
|
||||
net_unlock();
|
||||
return dev;
|
||||
}
|
||||
}
|
||||
|
||||
net_unlock(save);
|
||||
net_unlock();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue