mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
Fix some errors found in build testing.
This commit is contained in:
@@ -92,7 +92,7 @@ FAR struct net_driver_s *netdev_findbyindex(int ifindex)
|
||||
#ifdef CONFIG_NETDEV_IFINDEX
|
||||
/* Check if this index has been assigned */
|
||||
|
||||
if ((g_devset & (1L << (ifindex-1))) == 0)
|
||||
if ((g_devset & (1L << (ifindex - 1))) == 0)
|
||||
{
|
||||
/* This index has not been assigned */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user