mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
Eliminate CONFIG_NO_NOINTS. Lots of files changed -> lots of testing needed.
This commit is contained in:
@@ -72,12 +72,11 @@
|
||||
int netdev_count(void)
|
||||
{
|
||||
struct net_driver_s *dev;
|
||||
net_lock_t save;
|
||||
int ndev;
|
||||
|
||||
save = net_lock();
|
||||
net_lock();
|
||||
for (dev = g_netdevices, ndev = 0; dev; dev = dev->flink, ndev++);
|
||||
net_unlock(save);
|
||||
net_unlock();
|
||||
return ndev;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user