summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Linxuan <chenlinxuan@uniontech.com>2025-01-17 13:06:36 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2025-01-19 18:57:38 +0300
commit6e2c2342e2b608264cf763a27410295b05995191 (patch)
tree52b953da9b54b60eaf2903236f42608c4b55caf7
parent41fb0fabc40113769ce53ea85ffd1f4bc87ae03a (diff)
downloadlinux-6e2c2342e2b608264cf763a27410295b05995191.tar.xz
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@uniontech.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/DB86A4E2BB2BB44E+20250117100635.335963-2-chenlinxuan@uniontech.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
-rw-r--r--fs/erofs/super.c2
1 files changed, 0 insertions, 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;
}