From: Axel Lin Date: Sat, 3 Sep 2011 05:41:47 +0000 (+0800) Subject: ASoC: sn95031: Fix the logic to find free channel X-Git-Tag: v3.3-rc1~14^2~764 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4615ba8108649ed30804450eb054925e347ad3;p=pandora-kernel.git ASoC: sn95031: Fix the logic to find free channel In the case of no free channel available, current implementation returns 0 instead of negative errno. This patch fixes the logic to return -EINVAL if no free channel available. Signed-off-by: Axel Lin Acked-by: Vinod Koul Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed