summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorChengsong Ke <kechengsong@huawei.com>2020-11-02 16:27:43 +0800
committerRichard Weinberger <richard@nod.at>2020-12-13 22:11:23 +0100
commit32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf (patch)
tree13e50dd5df2c85ec2b40268d3a52437ade9f7eae /fs/ubifs
parenta61df3c413e49b0042f9caf774c58512d1cc71b7 (diff)
downloadlinux-stable-32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf.tar.gz
linux-stable-32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf.tar.bz2
linux-stable-32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf.zip
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/debug.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index e69c999d28ca..8cc057521c86 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)