diff options
author | Javier Cardona <javier@cozybit.com> | 2012-06-08 16:30:24 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-09 04:38:37 -0400 |
commit | e3f5d16120f5118e2f86f1f88deaa69e6843b31f (patch) | |
tree | c4795d2ef15ecc1e71e2696ae3b27cb1a4680d1f /net | |
parent | 934b9d1ed71cca5a220ec13e3f76d6aebf5183da (diff) |
mac80211: Remove unused variable
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Jason Abele <jason@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index fa7c58035246..acbd1ad8eb33 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, | |||
323 | static u32 airtime_link_metric_get(struct ieee80211_local *local, | 323 | static u32 airtime_link_metric_get(struct ieee80211_local *local, |
324 | struct sta_info *sta) | 324 | struct sta_info *sta) |
325 | { | 325 | { |
326 | struct ieee80211_supported_band *sband; | ||
327 | struct rate_info rinfo; | 326 | struct rate_info rinfo; |
328 | /* This should be adjusted for each device */ | 327 | /* This should be adjusted for each device */ |
329 | int device_constant = 1 << ARITH_SHIFT; | 328 | int device_constant = 1 << ARITH_SHIFT; |
@@ -333,8 +332,6 @@ static u32 airtime_link_metric_get(struct ieee80211_local *local, | |||
333 | u32 tx_time, estimated_retx; | 332 | u32 tx_time, estimated_retx; |
334 | u64 result; | 333 | u64 result; |
335 | 334 | ||
336 | sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; | ||
337 | |||
338 | if (sta->fail_avg >= 100) | 335 | if (sta->fail_avg >= 100) |
339 | return MAX_METRIC; | 336 | return MAX_METRIC; |
340 | 337 | ||