diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 12:42:13 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 12:42:13 -0500 |
commit | c5d3237c2424c4a3cf69d33abc1f229943468367 (patch) | |
tree | 5bd2cfc657b48cfc9ca014586d33704fa643475b /fs/coda/cache.c | |
parent | 88bcd51262ed45212d1b3a65abbac46eaf36bfeb (diff) |
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>
Diffstat (limited to 'fs/coda/cache.c')
-rw-r--r-- | fs/coda/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/cache.c b/fs/coda/cache.c index c607d923350a..5d0527133266 100644 --- a/fs/coda/cache.c +++ b/fs/coda/cache.c | |||
@@ -51,7 +51,7 @@ void coda_cache_clear_all(struct super_block *sb) | |||
51 | struct coda_sb_info *sbi; | 51 | struct coda_sb_info *sbi; |
52 | 52 | ||
53 | sbi = coda_sbp(sb); | 53 | sbi = coda_sbp(sb); |
54 | if (!sbi) BUG(); | 54 | BUG_ON(!sbi); |
55 | 55 | ||
56 | atomic_inc(&permission_epoch); | 56 | atomic_inc(&permission_epoch); |
57 | } | 57 | } |