Samuel Thibault
2016-10-05 21:11:09 UTC
Hello,
kstrtoul.
Samuel
This patch is for replacing obsolete simple_strtoul to kstrtoul which remove warning produce by checkpatch.
+ unsigned long val;
+
+ if (kstrtoul(start, 10, &val))
+ return NULL;
- val = simple_strtoul(skip_spaces(start), &start, 10);
if (*start == ',')
simple_strtoul modifies start, so you can't just replace it with+ unsigned long val;
+
+ if (kstrtoul(start, 10, &val))
+ return NULL;
- val = simple_strtoul(skip_spaces(start), &start, 10);
if (*start == ',')
kstrtoul.
Samuel