Re: [PATCH] ASoC: soc-card: Fix a reversed if condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Apr 08, 2024 at 10:38:02AM +0300, Dan Carpenter wrote:

>  	ret = snd_soc_register_card(priv->card);
> -	if (!ret)
> +	if (ret)
>  		return ret;
>  
>  	return 0;

Clearly a better fix here would just be to remove the conditional
entirely.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux