aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/fwserial
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2012-11-27 09:30:45 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-28 08:44:47 -0800
commiteef6e7b286e6dcf39a9b8c1d31477ee489451a8a (patch)
tree67244899269784d7fa09eff9edb8c1756bd995bd /drivers/staging/fwserial
parent7355ba3445f2a741bfb9f03c7c8d5fc3e10bf63f (diff)
staging/fwserial: Fix build breakage when !CONFIG_BUG
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>
Diffstat (limited to 'drivers/staging/fwserial')
-rw-r--r--drivers/staging/fwserial/dma_fifo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/fwserial/dma_fifo.c b/drivers/staging/fwserial/dma_fifo.c
index 72aa0533f01..5e846344550 100644
--- a/drivers/staging/fwserial/dma_fifo.c
+++ b/drivers/staging/fwserial/dma_fifo.c
@@ -33,10 +33,7 @@
#define FAIL(fifo, condition, format...) ({ \
fifo->corrupt = !!(condition); \
- if (unlikely(fifo->corrupt)) { \
- __WARN_printf(format); \
- } \
- unlikely(fifo->corrupt); \
+ WARN(fifo->corrupt, format); \
})
/*