diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2012-11-27 09:30:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 08:44:47 -0800 |
commit | eef6e7b286e6dcf39a9b8c1d31477ee489451a8a (patch) | |
tree | 67244899269784d7fa09eff9edb8c1756bd995bd /drivers/staging/fwserial | |
parent | 7355ba3445f2a741bfb9f03c7c8d5fc3e10bf63f (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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/fwserial/dma_fifo.c b/drivers/staging/fwserial/dma_fifo.c index 72aa0533f018..5e8463445504 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); \ }) /* |