]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ubifs: Remove some dead code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 1 Nov 2016 06:45:25 +0000 (07:45 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 12 Dec 2016 22:06:28 +0000 (23:06 +0100)
'ubifs_fast_find_freeable()' can not return an error pointer, so this test
can be removed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/gc.c

index e845c64b6ce19c175b8208d448fc4f75c0c2c1b7..7b35e3d6cde72c517a9a91db25e268b94e7098cf 100644 (file)
@@ -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));