|
@@ -1103,8 +1103,8 @@ static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts)
|
|
|
return 0;
|
|
|
|
|
|
for (;;) {
|
|
|
- char *end, *eq, *comma;
|
|
|
unsigned long value;
|
|
|
+ char *eq, *comma;
|
|
|
|
|
|
/* Option limit */
|
|
|
comma = strchr(opts, ',');
|
|
@@ -1120,8 +1120,7 @@ static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts)
|
|
|
*eq = 0;
|
|
|
|
|
|
/* Parse value */
|
|
|
- value = simple_strtoul(eq + 1, &end, 0);
|
|
|
- if (unlikely(*end != ',' && *end != 0)) {
|
|
|
+ if (kstrtoul(eq + 1, 0, &value)) {
|
|
|
pr_err("%s: invalid value: %s\n", opts, eq + 1);
|
|
|
return -EINVAL;
|
|
|
}
|