From f137a7b5523a7264270400df45a8c06619167b9d Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Fri, 30 Dec 2022 15:08:20 +0800 Subject: [PATCH] xtensa/esp32: Fix macro "CONFIG_NETDEV_IOCTL" control range error --- arch/xtensa/src/esp32/esp32_emac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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