Discussion:
[PATCH] staging: speakup: Replaced obsolete simple_strtoul
Samuel Thibault
2016-10-05 21:11:09 UTC
Permalink
Hello,
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
kstrtoul.

Samuel

Loading...