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 Mattock X-Patchwork-Id: 60703 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B55BBB70D8 for ; Tue, 3 Aug 2010 10:05:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754628Ab0HCAEp (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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The patch below fixes a compiler warning: CC [M] drivers/net/wireless/hostap/hostap_ioctl.o drivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_translate_scan': drivers/net/wireless/hostap/hostap_ioctl.c:1954:13: warning: variable 'hostscan' set but not used Keep in mind I've looked and searched for a fix for this but couldnt come up with anything.(if there is let me know and I'll have a try at it). Signed-off-by: Justin P. Mattock --- drivers/net/wireless/hostap/hostap_ioctl.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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];