iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local var
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Tue, 6 Sep 2011 23:12:05 +0000 (18:12 -0500)
committerStanislaw Gruszka <sgruszka@redhat.com>
Wed, 16 Nov 2011 11:53:16 +0000 (12:53 +0100)
remove the lq_sta local variable and return the
result directly in il4965_rs_alloc_sta

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
drivers/net/wireless/iwlegacy/4965-rs.c

index 2ec808e40c9639e88212a98142dd880d9fd8fd0e..52006376febdedf75fc1691035bdee7a267e2ae4 100644 (file)
@@ -2295,7 +2295,6 @@ il4965_rs_get_rate(void *il_r, struct ieee80211_sta *sta, void *il_sta,
 static void *
 il4965_rs_alloc_sta(void *il_rate, struct ieee80211_sta *sta, gfp_t gfp)
 {
-       struct il_lq_sta *lq_sta;
        struct il_station_priv *sta_priv =
            (struct il_station_priv *)sta->drv_priv;
        struct il_priv *il;
@@ -2303,9 +2302,7 @@ il4965_rs_alloc_sta(void *il_rate, struct ieee80211_sta *sta, gfp_t gfp)
        il = (struct il_priv *)il_rate;
        D_RATE("create station rate scale win\n");
 
-       lq_sta = &sta_priv->lq_sta;
-
-       return lq_sta;
+       return &sta_priv->lq_sta;
 }
 
 /*