Skip to content

Commit

Permalink
iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local var
Browse files Browse the repository at this point in the history
remove the lq_sta local variable and return the
result directly in il4965_rs_alloc_sta

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Stanislaw Gruszka <[email protected]>
  • Loading branch information
farmergreg authored and Stanislaw Gruszka committed Nov 16, 2011
1 parent 144c096 commit 3e4b065
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/wireless/iwlegacy/4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2295,17 +2295,14 @@ 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;

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;
}

/*
Expand Down

0 comments on commit 3e4b065

Please sign in to comment.