|
@@ -2771,16 +2771,13 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta,
|
|
|
static void *rs_alloc_sta(void *priv_rate, struct ieee80211_sta *sta,
|
|
|
gfp_t gfp)
|
|
|
{
|
|
|
- struct iwl_lq_sta *lq_sta;
|
|
|
struct iwl_station_priv *sta_priv = (struct iwl_station_priv *) sta->drv_priv;
|
|
|
struct iwl_priv *priv;
|
|
|
|
|
|
priv = (struct iwl_priv *)priv_rate;
|
|
|
IWL_DEBUG_RATE(priv, "create station rate scale window\n");
|
|
|
|
|
|
- lq_sta = &sta_priv->lq_sta;
|
|
|
-
|
|
|
- return lq_sta;
|
|
|
+ return &sta_priv->lq_sta;
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -3259,7 +3256,6 @@ static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file,
|
|
|
{
|
|
|
char buff[120];
|
|
|
int desc = 0;
|
|
|
- ssize_t ret;
|
|
|
|
|
|
struct iwl_lq_sta *lq_sta = file->private_data;
|
|
|
struct iwl_priv *priv;
|
|
@@ -3276,8 +3272,7 @@ static ssize_t rs_sta_dbgfs_rate_scale_data_read(struct file *file,
|
|
|
"Bit Rate= %d Mb/s\n",
|
|
|
iwl_rates[lq_sta->last_txrate_idx].ieee >> 1);
|
|
|
|
|
|
- ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc);
|
|
|
- return ret;
|
|
|
+ return simple_read_from_buffer(user_buf, count, ppos, buff, desc);
|
|
|
}
|
|
|
|
|
|
static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = {
|