diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-12-20 16:53:16 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-24 16:02:19 +0000 |
commit | 3271a4fc7daeb489bfe1730023c166065e6fb0e7 (patch) | |
tree | 13d8c60aae948308e13cf05b84a8dd526897c50f /sound/oss | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) | |
download | kernel_goldelico_gta04-3271a4fc7daeb489bfe1730023c166065e6fb0e7.zip kernel_goldelico_gta04-3271a4fc7daeb489bfe1730023c166065e6fb0e7.tar.gz kernel_goldelico_gta04-3271a4fc7daeb489bfe1730023c166065e6fb0e7.tar.bz2 |
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>
Diffstat (limited to 'sound/oss')
0 files changed, 0 insertions, 0 deletions