From: Chengsong Ke Date: Mon, 2 Nov 2020 08:27:43 +0000 (+0800) Subject: ubifs: Remove the redundant return in dbg_check_nondata_nodes_order X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf;p=linux.git 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 Signed-off-by: Richard Weinberger --- diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index e69c999d28ca7..8cc057521c863 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -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)