diff --git a/net/udp/udp_setsockopt.c b/net/udp/udp_setsockopt.c index 880b4d92c95..e3d4dca7d7e 100644 --- a/net/udp/udp_setsockopt.c +++ b/net/udp/udp_setsockopt.c @@ -127,7 +127,6 @@ int udp_setsockopt(FAR struct socket *psock, int option, ifindex = netdev_nametoindex(value); if (ifindex >= 0) { - DEBUGASSERT(ifindex > 0 && ifindex <= MAX_IFINDEX); conn->boundto = ifindex; ret = OK; }