ubifs: Remove the redundant return in dbg_check_nondata_nodes_order
authorChengsong Ke <kechengsong@huawei.com>
Mon, 2 Nov 2020 08:27:43 +0000 (16:27 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:11:23 +0000 (22:11 +0100)
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@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/debug.c

index e69c999..8cc0575 100644 (file)
@@ -2442,7 +2442,6 @@ error_dump:
        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)