]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
erofs: remove dead code in erofs_fc_parse_param
authorChen Linxuan <chenlinxuan@uniontech.com>
Fri, 17 Jan 2025 10:06:36 +0000 (18:06 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 19 Jan 2025 15:57:38 +0000 (23:57 +0800)
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>
fs/erofs/super.c

index 1fc5623c3a4d429296a677c9b5695d714d9880c6..827b6266564944bcf94a0952f99d907a7dbd4f63 100644 (file)
@@ -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;
 }