lkml.org 
[lkml]   [2016]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] add u64 number parser
> +	ret = kstrtoull(buf, base, &val);
> + if (!ret)
> + *result = val;

Simply pass "result" directly to kstrtoull(). It will not write the result
in case of error.

\
 
 \ /
  Last update: 2016-07-23 15:41    [W:0.027 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site