Skip to content

Commit

Permalink
staging/fwserial: Fix build breakage when !CONFIG_BUG
Browse files Browse the repository at this point in the history
Use WARN() as intended.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Hurley authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent 1b6c710 commit 1b94242
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/fwserial/dma_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
})

/*
Expand Down

0 comments on commit 1b94242

Please sign in to comment.