Commit 60ed286a61b43e3fedf18e63f2d71b758f3505aa

Authored by Daniel Mack
Committed by Takashi Iwai
1 parent 23dc05a33f

ALSA: usb-audio: make hwc_debug a noop in case HW_CONST_DEBUG is not set

Just defining it to nothing is dangerous as it can alter the code
execution flow, for example when used in as only function in a
conditional code block.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -8,7 +8,7 @@
8 8 #ifdef HW_CONST_DEBUG
9 9 #define hwc_debug(fmt, args...) printk(KERN_DEBUG fmt, ##args)
10 10 #else
11   -#define hwc_debug(fmt, args...) /**/
  11 +#define hwc_debug(fmt, args...) do { } while(0)
12 12 #endif
13 13  
14 14 #endif /* __USBAUDIO_DEBUG_H */