lkml.org 
[lkml]   [2012]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [alsa-devel] [PATCH v2] ASoC: da7210: Add support for PLL and SRM
On Tue, Apr 17, 2012 at 06:04:06PM +0530, Ashish Chavan wrote:

> + /* Search pll div array for correct divisors */
> + for (cnt = 0; cnt < ARRAY_SIZE(da7210_pll_div); cnt++) {
> + /* check fref */
> + if (fref == da7210_pll_div[cnt].fref) {
> + /* check mode */
> + if (da7210->master == da7210_pll_div[cnt].mode) {
> + /* check fout */
> + if (fout == da7210_pll_div[cnt].fout) {

I've applied but this would be a lot clearer if it were writen as a
single if statement with &&s.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-04-17 15:47    [W:0.201 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site