diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-03-10 13:46:07 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-11 10:21:13 +0300 |
commit | 5602a64318a4a6aad028141bb68e9bbd6bb5749a (patch) | |
tree | 38c0ea7cd2869a39c43a4754b67b61973a1ff30e /sound/soc | |
parent | 4f8ea6d759f6ed5d448472143cef7681e319c958 (diff) | |
download | linux-5602a64318a4a6aad028141bb68e9bbd6bb5749a.tar.xz |
ASoC: wm_adsp: Use correct local length in error message
Fixes: 44029e9e1290 ("ASoC: wm_adsp: wm_coeff_{read|write}_control should use passed length")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 36687db5da61..ba9213c0ad53 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -787,7 +787,7 @@ static int wm_coeff_read_control(struct wm_coeff_ctl *ctl, ret = regmap_raw_read(dsp->regmap, reg, scratch, len); if (ret) { adsp_err(dsp, "Failed to read %zu bytes from %x: %d\n", - ctl->len, reg, ret); + len, reg, ret); kfree(scratch); return ret; } |