From: Alexey Dobriyan <adobriyan@gmail.com>
To: james.smart@broadcom.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] add u64 number parser
Date: Sat, 23 Jul 2016 16:12:20 +0300 [thread overview]
Message-ID: <20160723131220.GA26279@p183.telecom.by> (raw)
> + 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.
next reply other threads:[~2016-07-23 13:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-23 13:12 Alexey Dobriyan [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-23 0:23 James Smart
2016-07-23 1:32 ` Bart Van Assche
2016-07-23 15:52 ` James Smart
2016-08-11 21:02 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160723131220.GA26279@p183.telecom.by \
--to=adobriyan@gmail.com \
--cc=james.smart@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®