diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-02-17 13:46:12 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 14:34:52 -0800 |
commit | afe305dcc96edc06aec923a0f5fa07ff654b2489 (patch) | |
tree | 69b83fc784e50051d79700c7fc6c767e68002030 /fs | |
parent | 08fe100d91bc09baca9eb22206f6b050286bd43c (diff) | |
download | linux-stable-afe305dcc96edc06aec923a0f5fa07ff654b2489.tar.gz linux-stable-afe305dcc96edc06aec923a0f5fa07ff654b2489.tar.bz2 linux-stable-afe305dcc96edc06aec923a0f5fa07ff654b2489.zip |
fs/affs/file.c: replace if/BUG by BUG_ON
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/affs/file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/affs/file.c b/fs/affs/file.c index 40a024a9b41d..7e83ba22bed4 100644 --- a/fs/affs/file.c +++ b/fs/affs/file.c @@ -180,8 +180,7 @@ affs_get_extblock_slow(struct inode *inode, u32 ext) ext_key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); if (ext < AFFS_I(inode)->i_extcnt) goto read_ext; - if (ext > AFFS_I(inode)->i_extcnt) - BUG(); + BUG_ON(ext > AFFS_I(inode)->i_extcnt); bh = affs_alloc_extblock(inode, bh, ext); if (IS_ERR(bh)) return bh; @@ -198,8 +197,7 @@ affs_get_extblock_slow(struct inode *inode, u32 ext) struct buffer_head *prev_bh; /* allocate a new extended block */ - if (ext > AFFS_I(inode)->i_extcnt) - BUG(); + BUG_ON(ext > AFFS_I(inode)->i_extcnt); /* get previous extended block */ prev_bh = affs_get_extblock(inode, ext - 1); |