diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 13:37:19 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 13:37:19 +0200 |
commit | f6298aab2ebaa61de39931595f125bc1968905cc (patch) | |
tree | 05389adf991958d0bf4227cd0bc140bdaab073e4 /fs/fcntl.c | |
parent | BUG_ON() Conversion in fs/dquot.c (diff) | |
download | linux-f6298aab2ebaa61de39931595f125bc1968905cc.tar.xz linux-f6298aab2ebaa61de39931595f125bc1968905cc.zip |
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>
Diffstat (limited to 'fs/fcntl.c')
-rw-r--r-- | fs/fcntl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fcntl.c b/fs/fcntl.c index 2a2479196f96..d35cbc6bc112 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 |