netdev: remove ASSERT when ifindex is invalid
There is no control over whether a valid index is input when user use ioctl to get netdev information, so removing this assertion will allow ENODEV to be returned. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
d59a9ea189
commit
76fde07d1c
1 changed files with 0 additions and 1 deletions
|
@ -61,7 +61,6 @@ FAR struct net_driver_s *netdev_findbyindex(int ifindex)
|
|||
* POSIX to mean no interface index.
|
||||
*/
|
||||
|
||||
DEBUGASSERT(ifindex > 0 && ifindex <= MAX_IFINDEX);
|
||||
if (ifindex < 1 || ifindex > MAX_IFINDEX)
|
||||
{
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue