[alsa-devel] [PATCH 09/11] soc - ac97 - Clean up checkpatch warnings

Takashi Iwai tiwai at suse.de
Wed Apr 23 14:16:19 CEST 2008


At Wed, 23 Apr 2008 13:08:03 +0100,
Mark Brown wrote:
> 
> @@ -135,7 +136,7 @@ static int ac97_soc_remove(struct platform_device *pdev)
>  	struct snd_soc_device *socdev = platform_get_drvdata(pdev);
>  	struct snd_soc_codec *codec = socdev->codec;
>  
> -	if(codec == NULL)
> +	if (codec == NULL)

Actually, "if (!codec)" is a preferred form.


Takashi


More information about the Alsa-devel mailing list