ASoC: Remove unused step size from debugfs CODEC write function
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 6 Sep 2011 23:39:17 +0000 (16:39 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 8 Sep 2011 22:38:18 +0000 (15:38 -0700)
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>
sound/soc/soc-core.c

index 4ec93d1df047027c42013b18fac27a7c133ed867..10e5cdeeb18ed1da0bc191aaa35574be8702ca04 100644 (file)
@@ -244,7 +244,6 @@ 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));
@@ -252,9 +251,6 @@ static ssize_t codec_reg_write_file(struct file *file,
                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);