From patchwork Wed Jun 16 05:33:51 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: 106364 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5G5Yd1f009993 for ; Wed, 16 Jun 2010 05:34:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754947Ab0FPFd4 (ORCPT ); Wed, 16 Jun 2010 01:33:56 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:46517 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754548Ab0FPFdv (ORCPT ); Wed, 16 Jun 2010 01:33:51 -0400 Received: by pwi1 with SMTP id 1so3707151pwi.19 for ; Tue, 15 Jun 2010 22:33:51 -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:in-reply-to:references; bh=ADD9dKJ9Q96Whug/f/Etmx5HCNyQMBqIdzB0e9GHT6c=; b=vMn/0QoVvjBb1SgTdl+f04ha70mqR4MbGwTYKEBajEd+i9DK8g0XJ7DM5DAbLQKQw/ cQPyYehD9+I2N2JjxwgJma3/W+LSamMCCt22wAluPiOTmoF3TLeW8cMxlnvHnNGRvSYy qjXyqH8ghjykptt9Lcin2xGzXx4CRG7SVEGEE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=oQSm0BYIOsty+YWprEjH2YFTDCPIcyCnTRzbFTLpuieF69bx/dlWmWY8ekqfLdBHJU pMFnbW+mhNl9xqPJ1YcFoAv2moMa2iZ5UiXXI0o87xxQ1JhVKs+jNd2NQAw0BvpNyDFn CB7fk6PhkL7LpLSkhBB+1DzZwLhWsKUXifIzs= Received: by 10.142.10.3 with SMTP id 3mr5848832wfj.120.1276666431160; Tue, 15 Jun 2010 22:33:51 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id n29sm77394991wae.4.2010.06.15.22.33.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 22:33:50 -0700 (PDT) From: "Justin P. Mattock" To: linux-kernel@vger.kernel.org Cc: linux-wireless@vger.kernel.org, linux-pci@vger.kernel.org, linux-scsi@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 2/5]wireless:hostap_ap.c Fix warning: variable 'fc' set but not used Date: Tue, 15 Jun 2010 22:33:51 -0700 Message-Id: <1276666434-11227-3-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 In-Reply-To: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> References: <1276666434-11227-1-git-send-email-justinmattock@gmail.com> 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]); Wed, 16 Jun 2010 05:34:40 +0000 (UTC) diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c index 231dbd7..9cadaa2 100644 --- a/drivers/net/wireless/hostap/hostap_ap.c +++ b/drivers/net/wireless/hostap/hostap_ap.c @@ -688,7 +688,7 @@ static void hostap_ap_tx_cb_assoc(struct sk_buff *skb, int ok, void *data) struct ap_data *ap = data; struct net_device *dev = ap->local->dev; struct ieee80211_hdr *hdr; - u16 fc, status; + u16 status; __le16 *pos; struct sta_info *sta = NULL; char *txt = NULL; @@ -699,7 +699,6 @@ static void hostap_ap_tx_cb_assoc(struct sk_buff *skb, int ok, void *data) } hdr = (struct ieee80211_hdr *) skb->data; - fc = le16_to_cpu(hdr->frame_control); if ((!ieee80211_is_assoc_resp(hdr->frame_control) && !ieee80211_is_reassoc_resp(hdr->frame_control)) || skb->len < IEEE80211_MGMT_HDR_LEN + 4) {