[alsa-devel] [PATCH 1/2] ASoC: ak4458: rstn_control - return a non-zero on error only

Mark Brown broonie at kernel.org
Sun May 12 09:54:17 CEST 2019


On Thu, May 09, 2019 at 01:30:36PM +0000, Viorel Suman wrote:

> -	return ret;
> +	/* Return a negative error code only. */
> +	return (ret < 0 ? ret : 0);

Please write normal conditional statements to help people who have to
read the code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190512/10f21164/attachment.sig>


More information about the Alsa-devel mailing list