Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278212
b: refs/heads/master
c: e3a2c77
h: refs/heads/master
v: v3
  • Loading branch information
Greg Dietsche authored and Stanislaw Gruszka committed Nov 16, 2011
1 parent 727f5de commit a546c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a741b99577c3fa359208c9ff14aede77bc0d0e02
refs/heads/master: e3a2c775336641663b1c38dfa7dd8a1c1210ae23
8 changes: 1 addition & 7 deletions trunk/drivers/net/wireless/iwlegacy/4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2769,14 +2769,9 @@ il4965_rs_sta_dbgfs_rate_scale_data_read(struct file *file,
{
char buff[120];
int desc = 0;
ssize_t ret;

struct il_lq_sta *lq_sta = file->private_data;
struct il_priv *il;
struct il_scale_tbl_info *tbl = &lq_sta->lq_info[lq_sta->active_tbl];

il = lq_sta->drv;

if (is_Ht(tbl->lq_type))
desc +=
sprintf(buff + desc, "Bit Rate= %d Mb/s\n",
Expand All @@ -2786,8 +2781,7 @@ il4965_rs_sta_dbgfs_rate_scale_data_read(struct file *file,
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 = {
Expand Down

0 comments on commit a546c21

Please sign in to comment.