From: Dimitris Papastamos Date: Tue, 21 Sep 2010 16:04:07 +0000 (+0100) Subject: ASoC: Return -1 instead of -EINVAL to ensure consistency X-Git-Tag: v2.6.37-rc1~126^2~1^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=391d8a04fc0f0d603642daa07f379e17c88001c9;p=pandora-kernel.git ASoC: Return -1 instead of -EINVAL to ensure consistency 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed