mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
net/: Fix alignment and spacing problems found by tools/nxstyle.
This commit is contained in:
@@ -106,7 +106,7 @@ FAR struct net_driver_s *netdev_findbyindex(int ifindex)
|
||||
* registered.
|
||||
*/
|
||||
|
||||
if (dev->d_ifindex == ifindex)
|
||||
if (dev->d_ifindex == ifindex)
|
||||
#else
|
||||
/* NOTE that this option is not a safe way to enumerate network
|
||||
* devices: There could be changes to the list of registered device
|
||||
@@ -165,7 +165,7 @@ int netdev_nextindex(int ifindex)
|
||||
|
||||
net_unlock();
|
||||
return ifindex + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
net_unlock();
|
||||
|
||||
@@ -144,9 +144,9 @@ static int ifconf_ipv4_callback(FAR struct net_driver_s *dev, FAR void *arg)
|
||||
net_ipv4addr_copy(inaddr->sin_addr.s_addr, dev->d_ipaddr);
|
||||
}
|
||||
|
||||
/* Increment the size of the buffer in any event */
|
||||
/* Increment the size of the buffer in any event */
|
||||
|
||||
ifc->ifc_len += sizeof(struct ifreq);
|
||||
ifc->ifc_len += sizeof(struct ifreq);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -221,9 +221,9 @@ static int ifconf_ipv6_callback(FAR struct net_driver_s *dev, FAR void *arg)
|
||||
net_ipv6addr_copy(inaddr->sin6_addr.s6_addr16, dev->d_ipv6addr);
|
||||
}
|
||||
|
||||
/* Increment the size of the buffer in any event */
|
||||
/* Increment the size of the buffer in any event */
|
||||
|
||||
lifc->lifc_len += sizeof(struct lifreq);
|
||||
lifc->lifc_len += sizeof(struct lifreq);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -153,9 +153,9 @@ int netdev_unregister(FAR struct net_driver_s *dev)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The entry was at the beginning of the list */
|
||||
/* The entry was at the beginning of the list */
|
||||
|
||||
g_netdevices = curr->flink;
|
||||
g_netdevices = curr->flink;
|
||||
}
|
||||
|
||||
curr->flink = NULL;
|
||||
|
||||
Reference in New Issue
Block a user