ASoC: Return -1 instead of -EINVAL to ensure consistency
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Tue, 21 Sep 2010 16:04:07 +0000 (17:04 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Sep 2010 15:48:50 +0000 (16:48 +0100)
The code can't really cope with I/O errors, so it would be better
to be consistent throughout all cache functions and return -1 instead
of -EINVAL.

The return value of snd_soc_read(...) is mostly checked in the probe
function and nowhere else.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found