OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7fc2c
)
ubifs: Remove some dead code
author
Christophe Jaillet
<christophe.jaillet@wanadoo.fr>
Tue, 1 Nov 2016 06:45:25 +0000
(07:45 +0100)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/fs/ubifs/gc.c
b/fs/ubifs/gc.c
index
e845c64
..
7b35e3d
100644
(file)
--- 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));