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:
parent
a61df3c413
commit
32f6ccc743
@ -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_msg(c, "dumping second node");
|
||||||
ubifs_dump_node(c, sb->node);
|
ubifs_dump_node(c, sb->node);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int chance(unsigned int n, unsigned int out_of)
|
static inline int chance(unsigned int n, unsigned int out_of)
|
||||||
|
Loading…
Reference in New Issue
Block a user