USB: usbatm: remove unused UDSL_ASSERT macro
If this code isn't triggering this assert by now, it never will, so just remove it, it's pointless. Cc: Duncan Sands <duncan.sands@free.fr> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -39,18 +39,6 @@
|
||||
#define VERBOSE_DEBUG
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
#define UDSL_ASSERT(instance, x) BUG_ON(!(x))
|
||||
#else
|
||||
#define UDSL_ASSERT(instance, x) \
|
||||
do { \
|
||||
if (!(x)) \
|
||||
dev_warn(&(instance)->usb_intf->dev, \
|
||||
"failed assertion '%s' at line %d", \
|
||||
__stringify(x), __LINE__); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#define usb_err(instance, format, arg...) \
|
||||
dev_err(&(instance)->usb_intf->dev , format , ## arg)
|
||||
#define usb_info(instance, format, arg...) \
|
||||
|
Reference in New Issue
Block a user