From 60a6d9cfe58130387d61a4ea4424d01beadc49ad Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 20 Oct 2020 11:32:40 +0900 Subject: [PATCH] arch/xtensa/src/esp32/esp32_wlan.c: Fix an unused var warning chip/esp32_wlan.c: In function 'esp_ioctl': chip/esp32_wlan.c:1262:30: warning: unused variable 'req' [-Wunused-variable] struct mii_ioctl_notify_s *req; ^~~ --- arch/xtensa/src/esp32/esp32_wlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_wlan.c b/arch/xtensa/src/esp32/esp32_wlan.c index 105b029a59..82afc6dbb0 100644 --- a/arch/xtensa/src/esp32/esp32_wlan.c +++ b/arch/xtensa/src/esp32/esp32_wlan.c @@ -1259,7 +1259,6 @@ static int esp_ioctl(FAR struct net_driver_s *dev, int ret; struct iw_point *essid; struct iw_encode_ext *ext; - struct mii_ioctl_notify_s *req; struct iwreq *iwr = (struct iwreq *)arg; /* Decode and dispatch the driver-specific IOCTL command */ @@ -1270,7 +1269,7 @@ static int esp_ioctl(FAR struct net_driver_s *dev, #ifdef CONFIG_ARCH_PHY_INTERRUPT case SIOCMIINOTIFY: /* Set up for PHY event notifications */ { - req = (struct mii_ioctl_notify_s *)arg; + struct mii_ioctl_notify_s *req = (struct mii_ioctl_notify_s *)arg; ret = esp_wifi_notify_subscribe(req->pid, &req->event); if (ret) {