Commit fa17cb4a authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'asoc/fix/cs42l52' into tmp

parents 587691ea 3271a4fc
...@@ -737,7 +737,7 @@ static const struct cs42l52_clk_para clk_map_table[] = { ...@@ -737,7 +737,7 @@ static const struct cs42l52_clk_para clk_map_table[] = {
static int cs42l52_get_clk(int mclk, int rate) static int cs42l52_get_clk(int mclk, int rate)
{ {
int i, ret = 0; int i, ret = -EINVAL;
u_int mclk1, mclk2 = 0; u_int mclk1, mclk2 = 0;
for (i = 0; i < ARRAY_SIZE(clk_map_table); i++) { for (i = 0; i < ARRAY_SIZE(clk_map_table); i++) {
...@@ -749,8 +749,6 @@ static int cs42l52_get_clk(int mclk, int rate) ...@@ -749,8 +749,6 @@ static int cs42l52_get_clk(int mclk, int rate)
} }
} }
} }
if (ret > ARRAY_SIZE(clk_map_table))
return -EINVAL;
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment