From: Chen Linxuan Date: Fri, 17 Jan 2025 10:06:36 +0000 (+0800) Subject: erofs: remove dead code in erofs_fc_parse_param X-Git-Tag: v6.14-rc1~86^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e2c2342e2b608264cf763a27410295b05995191;p=thirdparty%2Flinux.git 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 Reviewed-by: Gao Xiang Link: https://lore.kernel.org/r/DB86A4E2BB2BB44E+20250117100635.335963-2-chenlinxuan@uniontech.com Signed-off-by: Gao Xiang --- diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 1fc5623c3a4d4..827b626656494 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; }