From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v3 02/14] ASoC: SOF: Add Sound Open Firmware KControl support Date: Wed, 12 Dec 2018 01:25:44 +0200 Message-ID: <20181211232544.GP10650@smile.fi.intel.com> References: <20181211212318.28644-1-pierre-louis.bossart@linux.intel.com> <20181211212318.28644-3-pierre-louis.bossart@linux.intel.com> <20181211222308.GH10650@smile.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, Seppo Ingalsuo , tiwai@suse.de, Daniel Baluta , liam.r.girdwood@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, sound-open-firmware@alsa-project.org, Alan Cox List-Id: alsa-devel@alsa-project.org On Tue, Dec 11, 2018 at 04:48:37PM -0600, Pierre-Louis Bossart wrote: > > > + max_size =3D (be->max < max_size) ? be->max : max_size; > > min() / max() ? > = > Good catch, this can be simplified. > = > Not sure I like max_size =3D min (be->max, max_size), it's confusing. Hmm... It shows intention. For _max size_ you choose _minimum_ value out of= two. > = > Maybe > = > if (be->max < max_size) > = > =A0=A0=A0 max_size =3D be->max; It's minor, just choose one style and use it. -- = With Best Regards, Andy Shevchenko