From patchwork Mon Jun 21 22:02:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Mattock X-Patchwork-Id: 56354 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 11385B6F19 for ; Tue, 22 Jun 2010 08:03:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932894Ab0FUWC1 (ORCPT ); Mon, 21 Jun 2010 18:02:27 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:61837 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606Ab0FUWC0 (ORCPT ); Mon, 21 Jun 2010 18:02:26 -0400 Received: by mail-pw0-f46.google.com with SMTP id 8so528092pwj.19 for ; Mon, 21 Jun 2010 15:02:25 -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=3wCYkIHRlMJC9R9LO1706QD2e2bCJ8ng5N9io5+eBh4=; b=hpcNKLO9DXfsxObQn+amsaLalEwqxpwpkfXq1Iz+0o3Bpt+PHLQn2i+Y2ZpW/M/H/e 37QX8JDgGJA/Iw8LV92SuaBlctW/qW5CHL4RIJQay8XXPSHVqPDp7VGCHUJxFKVEIP4q b39Kk1oxtgsi1tbTBvXNzh/UpJjli4SMfGVsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=mHSs+SXzlJx3UqctHua7XqD3J+9Chj1vu/UKrPVeXsGBeO9/m1eOqjlg//NvIuvcx+ 5G1b+MYVmhP2caIR+JwlIbDvrB44zNjCAC8Iu+w5sy/RcYW++3yD5g9lVHg7Eq+hYg8b KDu1b4mQUBnya/FQhHQqap2lbfemH5Jw6nVWA= Received: by 10.114.33.7 with SMTP id g7mr4587277wag.49.1277157745637; Mon, 21 Jun 2010 15:02:25 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id f11sm20381650wai.11.2010.06.21.15.02.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Jun 2010 15:02:24 -0700 (PDT) From: "Justin P. Mattock" To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 1/5 v2]wireless:hostap_main.c warning: variable 'iface' set but not used Date: Mon, 21 Jun 2010 15:02:13 -0700 Message-Id: <1277157733-14071-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 This is a resend from version one due to trying a different approach than the original(probably important to leave netdev_priv() in). In any case have a look, if there's another approach let me know and ill test it out. The below patch fixes a warning im seeing when compiling with gcc 4.6.0 CC [M] drivers/net/wireless/hostap/hostap_main.o drivers/net/wireless/hostap/hostap_main.c: In function 'hostap_set_multicast_list_queue': drivers/net/wireless/hostap/hostap_main.c:744:27: warning: variable 'iface' set but not used Signed-off-by: Justin P. Mattock --- drivers/net/wireless/hostap/hostap_main.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index eb57d1e..a866e7a 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c @@ -741,9 +741,8 @@ void hostap_set_multicast_list_queue(struct work_struct *work) local_info_t *local = container_of(work, local_info_t, set_multicast_list_queue); struct net_device *dev = local->dev; - struct hostap_interface *iface; - iface = netdev_priv(dev); + netdev_priv(dev); if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE, local->is_promisc)) { printk(KERN_INFO "%s: %sabling promiscuous mode failed\n",