iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local var
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>
This commit is contained in:
parent
144c0961b4
commit
3e4b065520
|
@ -2295,7 +2295,6 @@ il4965_rs_get_rate(void *il_r, struct ieee80211_sta *sta, void *il_sta,
|
||||||
static void *
|
static void *
|
||||||
il4965_rs_alloc_sta(void *il_rate, struct ieee80211_sta *sta, gfp_t gfp)
|
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_priv =
|
||||||
(struct il_station_priv *)sta->drv_priv;
|
(struct il_station_priv *)sta->drv_priv;
|
||||||
struct il_priv *il;
|
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;
|
il = (struct il_priv *)il_rate;
|
||||||
D_RATE("create station rate scale win\n");
|
D_RATE("create station rate scale win\n");
|
||||||
|
|
||||||
lq_sta = &sta_priv->lq_sta;
|
return &sta_priv->lq_sta;
|
||||||
|
|
||||||
return lq_sta;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue