[PATCH 1/3] jffs2:Remove reductant error paths in the function jffs2_sum_scan_sumnode
Nicholas Krause
xerofoify at gmail.com
Wed Jul 8 20:00:29 PDT 2015
This removes reductant error paths in the function
jffs2_sum_scan_sumnode after calling the function
jffs2_scan_dirty_space due to this function always
running successfully and only ever returning the
value of zero.
Signed-off-by: Nicholas Krause <xerofoify at gmail.com>
---
fs/jffs2/summary.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c
index bc53854..39075fe 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -624,13 +624,11 @@ int jffs2_sum_scan_sumnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
if (je32_to_cpu(summary->cln_mkr) != c->cleanmarker_size) {
dbg_summary("CLEANMARKER node has totlen 0x%x != normal 0x%x\n",
je32_to_cpu(summary->cln_mkr), c->cleanmarker_size);
- if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)))))
- return ret;
+ jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)));
} else if (jeb->first_node) {
dbg_summary("CLEANMARKER node not first node in block "
"(0x%08x)\n", jeb->offset);
- if ((ret = jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)))))
- return ret;
+ jffs2_scan_dirty_space(c, jeb, PAD(je32_to_cpu(summary->cln_mkr)));
} else {
jffs2_link_node_ref(c, jeb, jeb->offset | REF_NORMAL,
je32_to_cpu(summary->cln_mkr), NULL);
--
2.1.4
More information about the linux-mtd
mailing list