diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2012-11-27 09:30:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 09:17:37 -0800 |
commit | 1b94242a692efa52656c8cb544f5cb87d1b3056f (patch) | |
tree | 6ad95c998f569d832d3fc29a32cb86a11b841078 /drivers/staging | |
parent | 1b6c710e2a0f636aa038dc80dc114edf8217f5e6 (diff) |
staging/fwserial: Fix build breakage when !CONFIG_BUG
Use WARN() as intended.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-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); \ }) /* |