Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdbecf50 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

ALSA: Clean up snd_BUG()



Use the standard WARN() macro for snd_BUG().

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 7cc6dffd
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -383,11 +383,7 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
	printk(fmt ,##args)
#endif

#define snd_BUG() do {				\
	snd_printk(KERN_ERR "BUG?\n");		\
	dump_stack();				\
} while (0)

#define snd_BUG()		WARN(1, "BUG?\n")
#define snd_BUG_ON(cond)	WARN((cond), "BUG? (%s)\n", __stringify(cond))

#else /* !CONFIG_SND_DEBUG */