Skip to content

Commit 6e2c234

Browse files
black-deskhsiangkao
authored andcommitted
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 <[email protected]> Reviewed-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/DB86A4E2BB2BB44E+20250117100635.335963-2-chenlinxuan@uniontech.com Signed-off-by: Gao Xiang <[email protected]>
1 parent 41fb0fa commit 6e2c234

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/erofs/super.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,6 @@ static int erofs_fc_parse_param(struct fs_context *fc,
508508
errorfc(fc, "%s option not supported", erofs_fs_parameters[opt].name);
509509
#endif
510510
break;
511-
default:
512-
return -ENOPARAM;
513511
}
514512
return 0;
515513
}

0 commit comments

Comments
 (0)