Re: [PATCH] ALSA: pcsp: Use common error handling code in snd_card_pcsp_probe()

From: Dan Carpenter
Date: Tue Aug 22 2017 - 08:18:41 EST


err = snd_card_register(card);
> - if (err < 0) {
> + if (err) {
> +free_card:
> snd_card_free(card);
> return err;
> }

I thought we agreed, yesterday, to never use this style of error
handling?

regards,
dan carpenter