summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/replay.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-15 12:40:46 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-16 10:31:41 +0300
commitc49139d8096dc1c392455dbc3f158b46038fc9d4 (patch)
treecc0eaf76b5221fccc6f67ba616dd00be053de038 /fs/ubifs/replay.c
parente76a452640dc110147f7a7da1dcfb1c5026f982d (diff)
downloadop-kernel-dev-c49139d8096dc1c392455dbc3f158b46038fc9d4.zip
op-kernel-dev-c49139d8096dc1c392455dbc3f158b46038fc9d4.tar.gz
UBIFS: remove BUG statement
Remove a 'BUG()' statement when we are unable to find a bud and add a similar 'ubifs_assert()' statement instead. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/replay.c')
-rw-r--r--fs/ubifs/replay.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index 4378baa..0f50fbf 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -487,7 +487,6 @@ static int replay_bud(struct ubifs_info *c, struct bud_entry *b)
int jhead = b->bud->jhead;
struct ubifs_scan_leb *sleb;
struct ubifs_scan_node *snod;
- struct ubifs_bud *bud;
dbg_mnt("replay bud LEB %d, head %d, offs %d", lnum, jhead, offs);
@@ -608,10 +607,7 @@ static int replay_bud(struct ubifs_info *c, struct bud_entry *b)
goto out;
}
- bud = ubifs_search_bud(c, lnum);
- if (!bud)
- BUG();
-
+ ubifs_assert(ubifs_search_bud(c, lnum));
ubifs_assert(sleb->endpt - offs >= used);
ubifs_assert(sleb->endpt % c->min_io_size == 0);
OpenPOWER on IntegriCloud