Commit f6298aab2ebaa61de39931595f125bc1968905cc

Authored by Eric Sesterhenn
Committed by Adrian Bunk
1 parent 8abf6a4707

BUG_ON() Conversion in fs/fcntl.c

this changes if() BUG(); constructs to BUG_ON() which is
cleaner and can better optimized away

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -453,8 +453,7 @@
453 453 /* Make sure we are called with one of the POLL_*
454 454 reasons, otherwise we could leak kernel stack into
455 455 userspace. */
456   - if ((reason & __SI_MASK) != __SI_POLL)
457   - BUG();
  456 + BUG_ON((reason & __SI_MASK) != __SI_POLL);
458 457 if (reason - POLL_IN >= NSIGPOLL)
459 458 si.si_band = ~0L;
460 459 else