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