[alsa-devel] [PATCH v4 5/6] core: add support for compress_offload

Takashi Iwai tiwai at suse.de
Thu Dec 22 09:51:04 CET 2011


At Thu, 22 Dec 2011 14:18:52 +0530,
Vinod Koul wrote:
> 
> On Thu, 2011-12-22 at 09:44 +0100, Takashi Iwai wrote:
> > 
> > You can use WARN() or snd_BUG_ON().
> But WARN or snd_BUG_ON will continue execution and....
> So better log it and return error, right?

Yes, write like
	if (snd_BUG_ON(!foo))
		return -ESOMETHING;


Takashi


More information about the Alsa-devel mailing list