ubifs: Remove the redundant return in dbg_check_nondata_nodes_order

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>
This commit is contained in:
Chengsong Ke 2020-11-02 16:27:43 +08:00 committed by Richard Weinberger
parent a61df3c413
commit 32f6ccc743
1 changed files with 0 additions and 1 deletions

View 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)