From: Axel Lin Date: Thu, 20 Dec 2012 08:53:16 +0000 (+0800) Subject: ASoC: cs42l52: Catch no-match case in cs42l52_get_clk X-Git-Tag: v3.8-rc4~23^2~1^2~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3271a4fc7daeb489bfe1730023c166065e6fb0e7;p=pandora-kernel.git ASoC: cs42l52: Catch no-match case in cs42l52_get_clk In the case of no-match, return -EINVAL instead of 0. Since we assign i to ret in the for loop, ret always less than ARRAY_SIZE(clk_map_table). Thus remove the boundary checking for ret. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed