1) remove ret local var and return the result directly
2) remove il since it is not used
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
{
char buff[120];
int desc = 0;
{
char buff[120];
int desc = 0;
struct il_lq_sta *lq_sta = file->private_data;
struct il_lq_sta *lq_sta = file->private_data;
struct il_scale_tbl_info *tbl = &lq_sta->lq_info[lq_sta->active_tbl];
struct il_scale_tbl_info *tbl = &lq_sta->lq_info[lq_sta->active_tbl];
if (is_Ht(tbl->lq_type))
desc +=
sprintf(buff + desc, "Bit Rate= %d Mb/s\n",
if (is_Ht(tbl->lq_type))
desc +=
sprintf(buff + desc, "Bit Rate= %d Mb/s\n",
sprintf(buff + desc, "Bit Rate= %d Mb/s\n",
il_rates[lq_sta->last_txrate_idx].ieee >> 1);
sprintf(buff + desc, "Bit Rate= %d Mb/s\n",
il_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 = {
}
static const struct file_operations rs_sta_dbgfs_rate_scale_data_ops = {