git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a49f0d1
)
ASoC: cs42l52: Catch no-match case in cs42l52_get_clk
author
Axel Lin
<axel.lin@ingics.com>
Thu, 20 Dec 2012 08:53:16 +0000
(16:53 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 16:02:19 +0000
(16:02 +0000)
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>
No differences found