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:
parent
7355ba3445
commit
eef6e7b286
1 changed files with 1 additions and 4 deletions
|
@ -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); \
|
||||
})
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue