Re: [PATCH] staging: speakup: replace simple_strtoul with kstrtou8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marcin Ciupak, on jeu. 02 mars 2017 15:28:23 +0100, wrote:
> -	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
used below:

>  	if (*start == ',')
>  		start++;
> -	*dest = (u_char)val;
>  	return start;

Samuel
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux