Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513111
| From | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] UBIFS: Remove some dead code |
| Date | 2016-11-01 07:50 +0100 |
| Message-ID | <syB3s-57B-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
'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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] UBIFS: Remove some dead code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-11-01 07:50 +0100
Re: [PATCH] UBIFS: Remove some dead code Richard Weinberger <richard@nod.at> - 2016-11-01 12:50 +0100
Re: [PATCH] UBIFS: Remove some dead code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-11-01 20:20 +0100
Re: [PATCH] UBIFS: Remove some dead code Julia Lawall <julia.lawall@lip6.fr> - 2016-11-01 20:30 +0100
Re: [PATCH] UBIFS: Remove some dead code Julia Lawall <julia.lawall@lip6.fr> - 2016-11-01 20:40 +0100
Re: [PATCH] UBIFS: Remove some dead code Julia Lawall <julia.lawall@lip6.fr> - 2016-11-01 20:40 +0100
csiph-web