diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2012-11-27 15:30:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-28 17:44:47 +0100 |
commit | eef6e7b286e6dcf39a9b8c1d31477ee489451a8a (patch) | |
tree | 67244899269784d7fa09eff9edb8c1756bd995bd /drivers | |
parent | staging: fwserial: Add TTY-over-Firewire serial driver (diff) | |
download | linux-eef6e7b286e6dcf39a9b8c1d31477ee489451a8a.tar.xz linux-eef6e7b286e6dcf39a9b8c1d31477ee489451a8a.zip |
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')
-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); \ }) /* |