From patchwork Tue Aug 3 00:04:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Justin P. Mattock" X-Patchwork-Id: 116643 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7305PUL011728 for ; Tue, 3 Aug 2010 00:05:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754631Ab0HCAEp (ORCPT ); Mon, 2 Aug 2010 20:04:45 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:57925 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754558Ab0HCAEm (ORCPT ); Mon, 2 Aug 2010 20:04:42 -0400 Received: by pxi14 with SMTP id 14so1491230pxi.19 for ; Mon, 02 Aug 2010 17:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=cK7HWilj+DA+CPsLivUAwWYFhOx7hLpl7cakHBzh3Ik=; b=uGpP+57oS85F6Fpsv43S6rkLqLMl9w4oEN8xRaePweuADa6Zt7Y2BAVsvylry9xHkg TQ3k6kmDiKHnRJAq886xkKI0+axiRxl6D7f2xkTrB16mI27H5RP27FHR7u9YNthjKAvX jKUXoDNvpD9ryJgX3v9JYLL0aW35nVstr+YdA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=OFPR8aiTP5bmzctbSOSx6U4aTfZhcC/RsIUrtn02Hqzf28XEDoH4wK9mI+3TTWIRy3 RFig3abXNbZp5gVjUtzcoE/hYqVyJT06f+b/Joz4FAPlkKx9fbdXzlCrJEtiEFKWF8yn ZEffqCoNdMkhi49c3xWzCOIe58Z4Vtbi3pS/8= Received: by 10.142.231.13 with SMTP id d13mr1793375wfh.75.1280793882057; Mon, 02 Aug 2010 17:04:42 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id w8sm8344210wfd.7.2010.08.02.17.04.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 17:04:41 -0700 (PDT) From: "Justin P. Mattock" To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, j@w1.fi, linville@tuxdriver.com, "Justin P. Mattock" Subject: [PATCH]hostap:hostap_ioctl.c Fix variable 'hostscan' set but not used Date: Mon, 2 Aug 2010 17:04:39 -0700 Message-Id: <1280793879-1768-1-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 03 Aug 2010 00:05:25 +0000 (UTC) diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 27d462f..25420e3 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c @@ -1951,7 +1951,7 @@ static inline int prism2_translate_scan(local_info_t *local, char *buffer, int buflen) { struct hfa384x_hostscan_result *scan; - int entry, hostscan; + int entry; char *current_ev = buffer; char *end_buf = buffer + buflen; struct list_head *ptr; @@ -1964,7 +1964,6 @@ static inline int prism2_translate_scan(local_info_t *local, bss->included = 0; } - hostscan = local->last_scan_type == PRISM2_HOSTSCAN; for (entry = 0; entry < local->last_scan_results_count; entry++) { int found = 0; scan = &local->last_scan_results[entry];