diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:14:55 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:42 -0400 |
commit | 7cc6dffdae28058f5953fac5743b6abf705d4f05 (patch) | |
tree | b25eb39a031f4955d885aba9cb972157475acc5c /include/sound/core.h | |
parent | 5e246b850df563224be26f1d409cf66fd6c968df (diff) |
ALSA: Kill snd_assert() definition
Remove snd_assert() completely now.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/core.h')
-rw-r--r-- | include/sound/core.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 938c36a0e874..b3d8ac7c832b 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -368,8 +368,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
368 | 368 | ||
369 | #ifdef CONFIG_SND_DEBUG | 369 | #ifdef CONFIG_SND_DEBUG |
370 | 370 | ||
371 | #define __ASTRING__(x) #x | ||
372 | |||
373 | #ifdef CONFIG_SND_VERBOSE_PRINTK | 371 | #ifdef CONFIG_SND_VERBOSE_PRINTK |
374 | /** | 372 | /** |
375 | * snd_printd - debug printk | 373 | * snd_printd - debug printk |
@@ -384,22 +382,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
384 | #define snd_printd(fmt, args...) \ | 382 | #define snd_printd(fmt, args...) \ |
385 | printk(fmt ,##args) | 383 | printk(fmt ,##args) |
386 | #endif | 384 | #endif |
387 | /** | ||
388 | * snd_assert - run-time assertion macro | ||
389 | * @expr: expression | ||
390 | * | ||
391 | * This macro checks the expression in run-time and invokes the commands | ||
392 | * given in the rest arguments if the assertion is failed. | ||
393 | * When CONFIG_SND_DEBUG is not set, the expression is executed but | ||
394 | * not checked. | ||
395 | */ | ||
396 | #define snd_assert(expr, args...) do { \ | ||
397 | if (unlikely(!(expr))) { \ | ||
398 | snd_printk(KERN_ERR "BUG? (%s)\n", __ASTRING__(expr)); \ | ||
399 | dump_stack(); \ | ||
400 | args; \ | ||
401 | } \ | ||
402 | } while (0) | ||
403 | 385 | ||
404 | #define snd_BUG() do { \ | 386 | #define snd_BUG() do { \ |
405 | snd_printk(KERN_ERR "BUG?\n"); \ | 387 | snd_printk(KERN_ERR "BUG?\n"); \ |
@@ -411,7 +393,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
411 | #else /* !CONFIG_SND_DEBUG */ | 393 | #else /* !CONFIG_SND_DEBUG */ |
412 | 394 | ||
413 | #define snd_printd(fmt, args...) /* nothing */ | 395 | #define snd_printd(fmt, args...) /* nothing */ |
414 | #define snd_assert(expr, args...) (void)(expr) | ||
415 | #define snd_BUG() /* nothing */ | 396 | #define snd_BUG() /* nothing */ |
416 | #define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ | 397 | #define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ |
417 | 398 | ||