[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1354000267.3284.4.camel@thor>
Date: Tue, 27 Nov 2012 02:11:07 -0500
From: Peter Hurley <peter@...leysoftware.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Randy Dunlap <rdunlap@...radead.org>, linux-next@...r.kernel.org,
linux-kernel@...r.kernel.org,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH -next] staging/fwserial: Fix build breakage when !CONFIG_BUG
Use WARN() as intended.
Signed-off-by: Peter Hurley <peter@...leysoftware.com>
---
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 72aa053..5e84634 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); \
})
/*
--
1.8.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists