aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-06 19:39:17 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-08 18:38:18 -0400
commit3ed464659a1d83a87f4ef79fab4d85a8dcf677c9 (patch)
treef7a15fc371b434f7ee83f7482d5747a776c86d95 /sound/soc/soc-core.c
parentc8f4b7fd681b236a1878dffaebc47f4f18c66d80 (diff)
ASoC: Remove unused step size from debugfs CODEC write function
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 4ec93d1df047..10e5cdeeb18e 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -244,7 +244,6 @@ static ssize_t codec_reg_write_file(struct file *file,
244 size_t buf_size; 244 size_t buf_size;
245 char *start = buf; 245 char *start = buf;
246 unsigned long reg, value; 246 unsigned long reg, value;
247 int step = 1;
248 struct snd_soc_codec *codec = file->private_data; 247 struct snd_soc_codec *codec = file->private_data;
249 248
250 buf_size = min(count, (sizeof(buf)-1)); 249 buf_size = min(count, (sizeof(buf)-1));
@@ -252,9 +251,6 @@ static ssize_t codec_reg_write_file(struct file *file,
252 return -EFAULT; 251 return -EFAULT;
253 buf[buf_size] = 0; 252 buf[buf_size] = 0;
254 253
255 if (codec->driver->reg_cache_step)
256 step = codec->driver->reg_cache_step;
257
258 while (*start == ' ') 254 while (*start == ' ')
259 start++; 255 start++;
260 reg = simple_strtoul(start, &start, 16); 256 reg = simple_strtoul(start, &start, 16);