]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wext: Remove write-only variable ap_num
authorPavel Roskin <proski@gnu.org>
Wed, 21 Sep 2011 14:59:07 +0000 (10:59 -0400)
committerJouni Malinen <j@w1.fi>
Wed, 21 Sep 2011 21:41:17 +0000 (00:41 +0300)
Signed-off-by: Pavel Roskin <proski@gnu.org>
src/drivers/driver_wext.c

index e73110174e531fe5fa1d680e5b600ebeb159826a..9fa356b8b6f690c66329caf5e6854f03804ec28f 100644 (file)
@@ -1387,7 +1387,7 @@ static void wpa_driver_wext_add_scan_entry(struct wpa_scan_results *res,
 struct wpa_scan_results * wpa_driver_wext_get_scan_results(void *priv)
 {
        struct wpa_driver_wext_data *drv = priv;
-       size_t ap_num = 0, len;
+       size_t len;
        int first;
        u8 *res_buf;
        struct iw_event iwe_buf, *iwe = &iwe_buf;
@@ -1399,7 +1399,6 @@ struct wpa_scan_results * wpa_driver_wext_get_scan_results(void *priv)
        if (res_buf == NULL)
                return NULL;
 
-       ap_num = 0;
        first = 1;
 
        res = os_zalloc(sizeof(*res));