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>
Wed, 28 Nov 2012 16:44:47 +0000 (08:44 -0800)
Use WARN() as intended.

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

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