diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2016-11-01 07:45:25 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2016-12-12 23:06:28 +0100 |
commit | d40a7962174f1144869f18d1fc68a385c9ab21ec (patch) | |
tree | e1237bbf195ccff57519f25046580de93ebf4938 | |
parent | 1b7fc2c0069f3864a3dda15430b7aded31c0bfcc (diff) | |
download | op-kernel-dev-d40a7962174f1144869f18d1fc68a385c9ab21ec.zip op-kernel-dev-d40a7962174f1144869f18d1fc68a385c9ab21ec.tar.gz |
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | fs/ubifs/gc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c index e845c64..7b35e3d 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)); |