Commit 32f6ccc7 authored by Chengsong Ke's avatar Chengsong Ke Committed by Richard Weinberger
Browse files

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: default avatarChengsong Ke <kechengsong@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent a61df3c4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)