From: Daniel Mack Date: Wed, 18 May 2011 09:28:39 +0000 (+0200) Subject: ALSA: usb-audio: make hwc_debug a noop in case HW_CONST_DEBUG is not set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60ed286a61b43e3fedf18e63f2d71b758f3505aa;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/debug.h b/sound/usb/debug.h index 343ec2d9ee6..58030176f00 100644 --- a/sound/usb/debug.h +++ b/sound/usb/debug.h @@ -8,7 +8,7 @@ #ifdef HW_CONST_DEBUG #define hwc_debug(fmt, args...) printk(KERN_DEBUG fmt, ##args) #else -#define hwc_debug(fmt, args...) /**/ +#define hwc_debug(fmt, args...) do { } while(0) #endif #endif /* __USBAUDIO_DEBUG_H */