summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-04-02 13:40:13 +0200
committerAdrian Bunk <bunk@stusta.de>2006-04-02 13:40:13 +0200
commit2c2111c2bd821d3e7cf5a6a37a112a620fd947a3 (patch)
tree2cbb5c5a2747479f91dc2b4081145701405634e7 /fs/udf
parentd6735bfcc998863dab89dacca2aed20932b6bc21 (diff)
downloadop-kernel-dev-2c2111c2bd821d3e7cf5a6a37a112a620fd947a3.zip
op-kernel-dev-2c2111c2bd821d3e7cf5a6a37a112a620fd947a3.tar.gz
BUG_ON() Conversion in fs/udf/
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() 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/udf')
-rw-r--r--fs/udf/inode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index 81e0e84..2983afd 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -312,12 +312,10 @@ static int udf_get_block(struct inode *inode, sector_t block, struct buffer_head
err = 0;
bh = inode_getblk(inode, block, &err, &phys, &new);
- if (bh)
- BUG();
+ BUG_ON(bh);
if (err)
goto abort;
- if (!phys)
- BUG();
+ BUG_ON(!phys);
if (new)
set_buffer_new(bh_result);
OpenPOWER on IntegriCloud