Samuel Thibault
2017-03-02 15:17:12 UTC
- int val;
+ int ret;
- val = simple_strtoul(skip_spaces(start), &start, 10);
+ ret = kstrtou8(skip_spaces(start), 10, dest);
This is not the same, you need to have start properly move, since it's+ int ret;
- val = simple_strtoul(skip_spaces(start), &start, 10);
+ ret = kstrtou8(skip_spaces(start), 10, dest);
if (*start == ',')
start++;
- *dest = (u_char)val;
return start;
Samuelstart++;
- *dest = (u_char)val;
return start;