BUG_ON() Conversion in fs/coda/
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>
This commit is contained in:
committed by
Adrian Bunk
parent
88bcd51262
commit
c5d3237c24
@@ -51,7 +51,7 @@ void coda_cache_clear_all(struct super_block *sb)
|
||||
struct coda_sb_info *sbi;
|
||||
|
||||
sbi = coda_sbp(sb);
|
||||
if (!sbi) BUG();
|
||||
BUG_ON(!sbi);
|
||||
|
||||
atomic_inc(&permission_epoch);
|
||||
}
|
||||
|
Reference in New Issue
Block a user