projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6735bf
)
BUG_ON() Conversion in fs/udf/
author
Eric Sesterhenn
<snakebyte@gmx.de>
Sun, 2 Apr 2006 11:40:13 +0000
(13:40 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Sun, 2 Apr 2006 11:40:13 +0000
(13:40 +0200)
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>
fs/udf/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/udf/inode.c
b/fs/udf/inode.c
index 81e0e8459af1159921b8b8f3f99e419b3e7869aa..2983afd5e7fd4932ca77cd24e95041f94b719062 100644
(file)
--- 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);