Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/cs42l52' into tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Jan 10, 2013
2 parents 587691e + 3271a4f commit fa17cb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/codecs/cs42l52.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ static const struct cs42l52_clk_para clk_map_table[] = {

static int cs42l52_get_clk(int mclk, int rate)
{
int i, ret = 0;
int i, ret = -EINVAL;
u_int mclk1, mclk2 = 0;

for (i = 0; i < ARRAY_SIZE(clk_map_table); i++) {
Expand All @@ -749,8 +749,6 @@ static int cs42l52_get_clk(int mclk, int rate)
}
}
}
if (ret > ARRAY_SIZE(clk_map_table))
return -EINVAL;
return ret;
}

Expand Down

0 comments on commit fa17cb4

Please sign in to comment.