forked from Minki/linux
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>
This commit is contained in:
parent
4f8ea6d759
commit
5602a64318
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user