projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/ubifs/gc.c
b/fs/ubifs/gc.c
index e845c64b6ce19c175b8208d448fc4f75c0c2c1b7..7b35e3d6cde72c517a9a91db25e268b94e7098cf 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));