Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] UBIFS: Remove some dead code
@ 2016-11-01  6:45 Christophe JAILLET
  2016-11-01 11:42 ` Richard Weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Christophe JAILLET @ 2016-11-01  6:45 UTC (permalink / raw)
  To: richard, dedekind1, adrian.hunter
  Cc: linux-mtd, linux-kernel, kernel-janitors, Christophe JAILLET

'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>
---
 fs/ubifs/gc.c | 4 ----
 1 file changed, 4 deletions(-)

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));
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-01 19:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01  6:45 [PATCH] UBIFS: Remove some dead code Christophe JAILLET
2016-11-01 11:42 ` Richard Weinberger
2016-11-01 19:17   ` Christophe JAILLET
2016-11-01 19:28     ` Julia Lawall
2016-11-01 19:32     ` Julia Lawall
2016-11-01 19:34     ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox