From 1b94242a692efa52656c8cb544f5cb87d1b3056f Mon Sep 17 00:00:00 2001 From: Peter Hurley Date: Tue, 27 Nov 2012 09:30:45 -0500 Subject: [PATCH] staging/fwserial: Fix build breakage when !CONFIG_BUG Use WARN() as intended. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- drivers/staging/fwserial/dma_fifo.c | 5 +---- 1 file changed, 1 insertion(+), 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); \ }) /* -- 2.20.1