Axel Lin 3271a4fc7d 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 <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-12-24 16:02:19 +00:00
..
2012-11-04 09:20:58 +01:00
2012-12-07 07:29:45 +01:00
2012-12-07 07:30:49 +01:00
2012-12-20 07:52:13 -08:00
2012-12-07 07:33:30 +01:00
2012-12-07 07:33:47 +01:00
2012-12-20 07:52:13 -08:00