diff options
author | Chengsong Ke <kechengsong@huawei.com> | 2020-11-02 11:27:43 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-12-14 00:11:23 +0300 |
commit | 32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf (patch) | |
tree | 13e50dd5df2c85ec2b40268d3a52437ade9f7eae /fs/ubifs | |
parent | a61df3c413e49b0042f9caf774c58512d1cc71b7 (diff) | |
download | linux-32f6ccc743b89bb4c51d4a868ffdb6ebda2909cf.tar.xz |
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.c | 1 |
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) |