[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB86A4E2BB2BB44E+20250117100635.335963-2-chenlinxuan@uniontech.com>
Date: Fri, 17 Jan 2025 18:06:36 +0800
From: Chen Linxuan <chenlinxuan@...ontech.com>
To: Gao Xiang <xiang@...nel.org>,
Chao Yu <chao@...nel.org>,
Yue Hu <zbestahu@...il.com>,
Jeffle Xu <jefflexu@...ux.alibaba.com>,
Sandeep Dhavale <dhavale@...gle.com>
Cc: Chen Linxuan <chenlinxuan@...ontech.com>,
linux-erofs@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2] erofs: remove dead code in erofs_fc_parse_param
If an option is unknown to erofs, which means that option is not in
`erofs_fs_parameters`, `fs_parse` will return -ENOPARAM, which makes
`erofs_fc_parse_param` returns earlier.
Signed-off-by: Chen Linxuan <chenlinxuan@...ontech.com>
---
Change Log:
v1->v2: Improve "erofs: add error log in erofs_fc_parse_param"
---
fs/erofs/super.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index 1fc5623c3a4d..827b62665649 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -508,8 +508,6 @@ static int erofs_fc_parse_param(struct fs_context *fc,
errorfc(fc, "%s option not supported", erofs_fs_parameters[opt].name);
#endif
break;
- default:
- return -ENOPARAM;
}
return 0;
}
--
2.43.0
Powered by blists - more mailing lists