[alsa-devel] [PATCH] ASoC: cs42l52: Catch no-match case in cs42l52_get_clk

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Dec 24 17:02:49 CET 2012

On Thu, Dec 20, 2012 at 04:53:16PM +0800, Axel Lin wrote:
> 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.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121224/add09b19/attachment-0001.sig>

More information about the Alsa-devel mailing list