浏览代码

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>
Christophe Jaillet 8 年之前
父节点
当前提交
d40a796217
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      fs/ubifs/gc.c

+ 0 - 4
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));