From: Christophe Jaillet Date: Tue, 1 Nov 2016 06:45:25 +0000 (+0100) Subject: ubifs: Remove some dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d40a7962174f1144869f18d1fc68a385c9ab21ec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ubifs: Remove some dead code 'ubifs_fast_find_freeable()' can not return an error pointer, so this test can be removed. Signed-off-by: Christophe JAILLET Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c index e845c64b6ce1..7b35e3d6cde7 100644 --- a/fs/ubifs/gc.c +++ b/fs/ubifs/gc.c @@ -846,10 +846,6 @@ int ubifs_gc_start_commit(struct ubifs_info *c) */ while (1) { lp = ubifs_fast_find_freeable(c); - if (IS_ERR(lp)) { - err = PTR_ERR(lp); - goto out; - } if (!lp) break; ubifs_assert(!(lp->flags & LPROPS_TAKEN));