Bläddra i källkod

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>
Javier Cardona 13 år sedan
förälder
incheckning
e3f5d16120
1 ändrade filer med 0 tillägg och 3 borttagningar
  1. 0 3
      net/mac80211/mesh_hwmp.c

+ 0 - 3
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,
 static u32 airtime_link_metric_get(struct ieee80211_local *local,
 				   struct sta_info *sta)
 				   struct sta_info *sta)
 {
 {
-	struct ieee80211_supported_band *sband;
 	struct rate_info rinfo;
 	struct rate_info rinfo;
 	/* This should be adjusted for each device */
 	/* This should be adjusted for each device */
 	int device_constant = 1 << ARITH_SHIFT;
 	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;
 	u32 tx_time, estimated_retx;
 	u64 result;
 	u64 result;
 
 
-	sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
-
 	if (sta->fail_avg >= 100)
 	if (sta->fail_avg >= 100)
 		return MAX_METRIC;
 		return MAX_METRIC;