[PATCH] ubifs: Remove the redundant return in dbg_check_nondata_nodes_order

From: Chengsong Ke
Date: Mon Nov 02 2020 - 03:27:56 EST


There is a redundant return in dbg_check_nondata_nodes_order,
which will be never reached. In addition, error code should be
returned instead of zero in this branch.

Signed-off-by: Chengsong Ke <kechengsong@xxxxxxxxxx>
---
fs/ubifs/debug.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index ebff43f8009c..b2db518056cb 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2442,7 +2442,6 @@ int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head)
ubifs_msg(c, "dumping second node");
ubifs_dump_node(c, sb->node);
return -EINVAL;
- return 0;
}

static inline int chance(unsigned int n, unsigned int out_of)
--
2.12.3