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>
This commit is contained in:
Peter Hurley 2012-11-27 09:30:45 -05:00 committed by Greg Kroah-Hartman
parent 7355ba3445
commit eef6e7b286

View file

@ -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); \
})
/*