diff options
Diffstat (limited to 'fs/ubifs/replay.c')
-rw-r--r-- | fs/ubifs/replay.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index 4378baa6694b..0f50fbfe630f 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) | |||
487 | int jhead = b->bud->jhead; | 487 | int jhead = b->bud->jhead; |
488 | struct ubifs_scan_leb *sleb; | 488 | struct ubifs_scan_leb *sleb; |
489 | struct ubifs_scan_node *snod; | 489 | struct ubifs_scan_node *snod; |
490 | struct ubifs_bud *bud; | ||
491 | 490 | ||
492 | dbg_mnt("replay bud LEB %d, head %d, offs %d", lnum, jhead, offs); | 491 | dbg_mnt("replay bud LEB %d, head %d, offs %d", lnum, jhead, offs); |
493 | 492 | ||
@@ -608,10 +607,7 @@ static int replay_bud(struct ubifs_info *c, struct bud_entry *b) | |||
608 | goto out; | 607 | goto out; |
609 | } | 608 | } |
610 | 609 | ||
611 | bud = ubifs_search_bud(c, lnum); | 610 | ubifs_assert(ubifs_search_bud(c, lnum)); |
612 | if (!bud) | ||
613 | BUG(); | ||
614 | |||
615 | ubifs_assert(sleb->endpt - offs >= used); | 611 | ubifs_assert(sleb->endpt - offs >= used); |
616 | ubifs_assert(sleb->endpt % c->min_io_size == 0); | 612 | ubifs_assert(sleb->endpt % c->min_io_size == 0); |
617 | 613 | ||