Commit d40a7962 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Richard Weinberger

ubifs: Remove some dead code

'ubifs_fast_find_freeable()' can not return an error pointer, so this test
can be removed.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 1b7fc2c0
...@@ -846,10 +846,6 @@ int ubifs_gc_start_commit(struct ubifs_info *c) ...@@ -846,10 +846,6 @@ int ubifs_gc_start_commit(struct ubifs_info *c)
*/ */
while (1) { while (1) {
lp = ubifs_fast_find_freeable(c); lp = ubifs_fast_find_freeable(c);
if (IS_ERR(lp)) {
err = PTR_ERR(lp);
goto out;
}
if (!lp) if (!lp)
break; break;
ubifs_assert(!(lp->flags & LPROPS_TAKEN)); ubifs_assert(!(lp->flags & LPROPS_TAKEN));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment