Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:53644 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994Ab2FFXTv (ORCPT ); Wed, 6 Jun 2012 19:19:51 -0400 Received: by mail-pb0-f46.google.com with SMTP id rp8so197408pbb.19 for ; Wed, 06 Jun 2012 16:19:51 -0700 (PDT) From: Jason Abele To: "John W. Linville" Cc: Johannes Berg , devel@lists.open80211s.org, linux-wireless Subject: [PATCH v2 2/5] mac80211: Remove unused variable Date: Wed, 6 Jun 2012 16:19:32 -0700 Message-Id: <1339024775-15405-3-git-send-email-jason@cozybit.com> (sfid-20120607_011955_140888_76E90BF6) In-Reply-To: <1339024775-15405-1-git-send-email-jason@cozybit.com> References: <1339024775-15405-1-git-send-email-jason@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Javier Cardona Signed-off-by: Javier Cardona --- net/mac80211/mesh_hwmp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index fa7c580..acbd1ad 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -323,7 +323,6 @@ void ieee80211s_update_metric(struct ieee80211_local *local, static u32 airtime_link_metric_get(struct ieee80211_local *local, struct sta_info *sta) { - struct ieee80211_supported_band *sband; struct rate_info rinfo; /* This should be adjusted for each device */ int device_constant = 1 << ARITH_SHIFT; @@ -333,8 +332,6 @@ static u32 airtime_link_metric_get(struct ieee80211_local *local, u32 tx_time, estimated_retx; u64 result; - sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; - if (sta->fail_avg >= 100) return MAX_METRIC; -- 1.7.9.5