aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_wext.c
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2011-09-21 14:59:07 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-21 21:41:17 (GMT)
commita776b19cda30e3370d05ec244118f277604ef570 (patch)
tree2c1d01950de5b402035ddd5eeb359ac2beb74d06 /src/drivers/driver_wext.c
parentc36d52427a1edd051143328fe348fd0502b6dc57 (diff)
downloadhostap-a776b19cda30e3370d05ec244118f277604ef570.zip
hostap-a776b19cda30e3370d05ec244118f277604ef570.tar.gz
hostap-a776b19cda30e3370d05ec244118f277604ef570.tar.bz2
wext: Remove write-only variable ap_num
Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'src/drivers/driver_wext.c')
-rw-r--r--src/drivers/driver_wext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index e731101..9fa356b 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -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));