diff options
Diffstat (limited to 'nuttx/net/netdev_register.c')
-rw-r--r-- | nuttx/net/netdev_register.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/net/netdev_register.c b/nuttx/net/netdev_register.c index fd5656cfc..d9a5edc53 100644 --- a/nuttx/net/netdev_register.c +++ b/nuttx/net/netdev_register.c @@ -104,7 +104,7 @@ void netdev_semtake(void) while (uip_lockedwait(&g_netdev_sem) != 0) { - /* The only case that an error should occr here is if + /* The only case that an error should occur here is if * the wait was awakened by a signal. */ @@ -116,17 +116,17 @@ void netdev_semtake(void) * Function: netdev_register * * Description: - * Register a netword device driver and assign a name to it so tht it can + * Register a network device driver and assign a name to it so tht it can * be found in subsequent network ioctl operations on the device. * * Parameters: * dev - The device driver structure to register * * Returned Value: - * 0:Success; -1 on failure + * 0:Success; negated errno on failure * * Assumptions: - * Called during system initialization from normal user mode + * Called during system initialization from normal user mode * ****************************************************************************/ @@ -140,7 +140,7 @@ int netdev_register(FAR struct uip_driver_s *dev) /* Assign a device name to the interface */ devnum = g_next_devnum++; - snprintf( dev->d_ifname, IFNAMSIZ, NETDEV_FORMAT, devnum ); + snprintf(dev->d_ifname, IFNAMSIZ, NETDEV_FORMAT, devnum ); /* Add the device to the list of known network devices */ |