Skip to content

Commit

Permalink
ASoC: Remove unused step size from debugfs CODEC write function
Browse files Browse the repository at this point in the history
We don't use the step size so there's no need to work it out.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Sep 8, 2011
1 parent c8f4b7f commit 3ed4646
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,13 @@ static ssize_t codec_reg_write_file(struct file *file,
size_t buf_size;
char *start = buf;
unsigned long reg, value;
int step = 1;
struct snd_soc_codec *codec = file->private_data;

buf_size = min(count, (sizeof(buf)-1));
if (copy_from_user(buf, user_buf, buf_size))
return -EFAULT;
buf[buf_size] = 0;

if (codec->driver->reg_cache_step)
step = codec->driver->reg_cache_step;

while (*start == ' ')
start++;
reg = simple_strtoul(start, &start, 16);
Expand Down

0 comments on commit 3ed4646

Please sign in to comment.