From patchwork Wed Mar 24 11:56:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 87885 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 o2OBuwLt028457 for ; Wed, 24 Mar 2010 11:56:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755874Ab0CXL44 (ORCPT ); Wed, 24 Mar 2010 07:56:56 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:46227 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755377Ab0CXL4y (ORCPT ); Wed, 24 Mar 2010 07:56:54 -0400 Received: by bwz1 with SMTP id 1so2769659bwz.21 for ; Wed, 24 Mar 2010 04:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=2BROSn+nRtm/JzfrYeIpMnUKxygfEQwkzqJmmHbMVo8=; b=lCnW9LcBZpIExrBdX/G/i8JqSQIl6eb8WVnyJA4basRTLY3mPcYyMY2Vj7ah//5eQD EtX326wbA0txyelAxoojQbekYZJJ9E+a9XYX+siBcEhrKTRBsRWj1pGkgSIK4qv+nNfE lwQZJVbkeOs2hfA3wV2WmE+m3VwAvoWKcRq2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=h5dPlss4hlzNmihy+8POhqwk5sndpdnxkUQab5ebj0V72Mqq7zsC+ZtY9iitSiDtEm E1AUKhdf5fekoGKNdng3RGmRW6wRlyFWjKhPTWySYLYE1QERpVAR7DF678fNigxpZRVy 6TuuoUJc7K5nAdcWAviLeil2kXwMU/D47HteM= Received: by 10.204.45.207 with SMTP id g15mr6811746bkf.210.1269431810613; Wed, 24 Mar 2010 04:56:50 -0700 (PDT) Received: from bicker ([196.43.68.195]) by mx.google.com with ESMTPS id d5sm3104907bkd.13.2010.03.24.04.56.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Mar 2010 04:56:49 -0700 (PDT) Date: Wed, 24 Mar 2010 14:56:41 +0300 From: Dan Carpenter To: Johannes Berg Cc: "John W. Linville" , "David S. Miller" , "Luis R. Rodriguez" , Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] mac80211: remove unneed variable from ieee80211_tx_pending() Message-ID: <20100324115641.GE21571@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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, 24 Mar 2010 11:56:58 +0000 (UTC) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index cbe53ed..08e1f17 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -2010,14 +2010,12 @@ void ieee80211_tx_pending(unsigned long data) while (!skb_queue_empty(&local->pending[i])) { struct sk_buff *skb = __skb_dequeue(&local->pending[i]); struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); - struct ieee80211_sub_if_data *sdata; if (WARN_ON(!info->control.vif)) { kfree_skb(skb); continue; } - sdata = vif_to_sdata(info->control.vif); spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);