staging/fwserial: Fix build breakage when !CONFIG_BUG
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 27 Nov 2012 14:30:45 +0000 (09:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 17:17:37 +0000 (09:17 -0800)
Use WARN() as intended.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/dma_fifo.c

index 72aa0533f018abd698a32fe09b5c87c62cda47ea..5e846344550484e2bb22527c0fd10c6c4dcdae33 100644 (file)
 
 #define FAIL(fifo, condition, format...) ({                            \
        fifo->corrupt = !!(condition);                                  \
-       if (unlikely(fifo->corrupt)) {                                  \
-               __WARN_printf(format);                                  \
-       }                                                               \
-       unlikely(fifo->corrupt);                                        \
+       WARN(fifo->corrupt, format);                                    \
 })
 
 /*