From: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
"peter.maydell@linaro.org" <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] accel: make configure_accelerator return void
Date: Thu, 14 Apr 2016 03:19:16 +0000 [thread overview]
Message-ID: <1460603955.2269.29.camel@localhost> (raw)
In-Reply-To: <1458036463-20180-1-git-send-email-weijg.fnst@cn.fujitsu.com>
ping...
Any comments?
On Tue, 2016-03-15 at 18:07 +0800, Wei Jiangang wrote:
> Return the negated value of accel_initialised is meaningless,
> and the caller vl doesn't check it.
>
> Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
> ---
> accel.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/accel.c b/accel.c
> index 0510b90..403eb5e 100644
> --- a/accel.c
> +++ b/accel.c
> @@ -77,7 +77,7 @@ static int accel_init_machine(AccelClass *acc, MachineState *ms)
> return ret;
> }
>
> -int configure_accelerator(MachineState *ms)
> +void configure_accelerator(MachineState *ms)
> {
> const char *p;
> char buf[10];
> @@ -128,8 +128,6 @@ int configure_accelerator(MachineState *ms)
> if (init_failed) {
> fprintf(stderr, "Back to %s accelerator.\n", acc->name);
> }
> -
> - return !accel_initialised;
> }
>
>
next prev parent reply other threads:[~2016-04-14 3:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-15 10:07 [Qemu-devel] [PATCH] accel: make configure_accelerator return void Wei Jiangang
2016-04-14 3:19 ` Wei, Jiangang [this message]
2016-04-14 3:34 ` Changlong Xie
2016-04-14 3:53 ` Wei, Jiangang
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=1460603955.2269.29.camel@localhost \
--to=weijg.fnst@cn.fujitsu.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.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;
as well as URLs for NNTP newsgroup(s).