Skip to content

Commit

Permalink
mac80211: Remove unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Jason Abele <jason@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Javier Cardona authored and Johannes Berg committed Jun 9, 2012
1 parent 934b9d1 commit e3f5d16
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/mac80211/mesh_hwmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit e3f5d16

Please sign in to comment.