[PATCH 2/2] hostap: remove unused variable in handle_frame()

Pavel Roskin proski
Thu Jul 28 10:23:16 PDT 2011


Signed-off-by: Pavel Roskin <proski at gnu.org>
---
 src/drivers/driver_hostap.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/drivers/driver_hostap.c b/src/drivers/driver_hostap.c
index 0c6b0c7..2d7a9df 100644
--- a/src/drivers/driver_hostap.c
+++ b/src/drivers/driver_hostap.c
@@ -148,7 +148,6 @@ static void handle_frame(struct hostap_driver_data *drv, u8 *buf, size_t len)
 {
 	struct ieee80211_hdr *hdr;
 	u16 fc, extra_len, type, stype;
-	unsigned char *extra = NULL;
 	size_t data_len = len;
 	int ver;
 	union wpa_event_data event;
@@ -185,7 +184,6 @@ static void handle_frame(struct hostap_driver_data *drv, u8 *buf, size_t len)
 			return;
 		}
 		len -= extra_len + 2;
-		extra = buf + len;
 	} else if (ver == 1 || ver == 2) {
 		handle_tx_callback(drv, buf, data_len, ver == 2 ? 1 : 0);
 		return;



More information about the Hostap mailing list