Skip to contentSkip to conversation

add u64 number parser

PATCH Alexey Dobriyan 1 participant 1 message Jul 23, 2016

lore
Share & tools
lore
#0 lore raw

Review

Quoted 3 lines
(quoted diff) +3 -0
+	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.