diff --git a/arch/xtensa/src/esp32/esp32_emac.c b/arch/xtensa/src/esp32/esp32_emac.c index 97971bda7b..c93b5118ef 100644 --- a/arch/xtensa/src/esp32/esp32_emac.c +++ b/arch/xtensa/src/esp32/esp32_emac.c @@ -1989,10 +1989,8 @@ static int emac_ioctl(struct net_driver_s *dev, int cmd, unsigned long arg) } return ret; -#else - return -EINVAL; -#endif /* CONFIG_NETDEV_IOCTL */ } +#endif /* CONFIG_NETDEV_IOCTL */ /**************************************************************************** * Public Functions