[alsa-devel] [PATCH] ASoC: let snd_soc_update_bits() return an error code

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Jan 10 20:29:01 CET 2011


On Mon, Jan 10, 2011 at 01:28:33PM -0600, Timur Tabi wrote:

> +	ret = old = snd_soc_read(codec, reg);
> +	if (ret < 0)
> +		return ret;

Please don't use multiple assignments in a single statement, it does
nothing for legibility.


More information about the Alsa-devel mailing list