Re: [PATCH] add u64 number parser

From: Alexey Dobriyan
Date: Sat Jul 23 2016 - 09:12:29 EST


> + 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.