]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mac80211: Remove unused variable
authorJavier Cardona <javier@cozybit.com>
Fri, 8 Jun 2012 20:30:24 +0000 (13:30 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 9 Jun 2012 08:38:37 +0000 (10:38 +0200)
Signed-off-by: Javier Cardona <javier@cozybit.com>
Reviewed-by: Jason Abele <jason@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c

index fa7c58035246f37e6148f1a43a177dfba1e9fb51..acbd1ad8eb33c1966e6f3eede51730363e76cc75 100644 (file)
@@ -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;