From: Eric Sesterhenn Date: Sun, 2 Apr 2006 11:37:19 +0000 (+0200) Subject: BUG_ON() Conversion in fs/fcntl.c X-Git-Tag: v2.6.17-rc1~10^2~13 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f6298aab2ebaa61de39931595f125bc1968905cc;p=~emulex%2Finfiniband.git 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 Signed-off-by: Adrian Bunk --- diff --git a/fs/fcntl.c b/fs/fcntl.c index 2a2479196f9..d35cbc6bc11 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -453,8 +453,7 @@ static void send_sigio_to_task(struct task_struct *p, /* Make sure we are called with one of the POLL_* reasons, otherwise we could leak kernel stack into userspace. */ - if ((reason & __SI_MASK) != __SI_POLL) - BUG(); + BUG_ON((reason & __SI_MASK) != __SI_POLL); if (reason - POLL_IN >= NSIGPOLL) si.si_band = ~0L; else