提交 2c2111c2 编写于 作者: E Eric Sesterhenn 提交者: Adrian Bunk

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: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
上级 d6735bfc
...@@ -312,12 +312,10 @@ static int udf_get_block(struct inode *inode, sector_t block, struct buffer_head ...@@ -312,12 +312,10 @@ static int udf_get_block(struct inode *inode, sector_t block, struct buffer_head
err = 0; err = 0;
bh = inode_getblk(inode, block, &err, &phys, &new); bh = inode_getblk(inode, block, &err, &phys, &new);
if (bh) BUG_ON(bh);
BUG();
if (err) if (err)
goto abort; goto abort;
if (!phys) BUG_ON(!phys);
BUG();
if (new) if (new)
set_buffer_new(bh_result); set_buffer_new(bh_result);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册