From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again)
Date: Fri, 14 Dec 2018 11:43:56 +0100 [thread overview]
Message-ID: <db306820-d31e-b277-182e-09f37c6d0e2e@redhat.com> (raw)
In-Reply-To: <20181213175807.12039-1-armbru@redhat.com>
On 12/13/18 6:58 PM, Markus Armbruster wrote:
> Patch created mechanically by rerunning:
>
> $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
> --macro-file scripts/cocci-macro-file.h vl.c
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> vl.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index a5ae5f23d2..702a828ca2 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3138,11 +3138,8 @@ int main(int argc, char **argv, char **envp)
> Visitor *v;
> BlockdevOptions_queue *bdo;
>
> - v = qobject_input_visitor_new_str(optarg, "driver", &err);
> - if (!v) {
> - error_report_err(err);
> - exit(1);
> - }
> + v = qobject_input_visitor_new_str(optarg, "driver",
> + &error_fatal);
>
> bdo = g_new(BlockdevOptions_queue, 1);
> visit_type_BlockdevOptions(v, NULL, &bdo->bdo,
>
next prev parent reply other threads:[~2018-12-14 10:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 17:58 [Qemu-devel] [PATCH] vl: Use error_fatal to simplify obvious fatal errors (again) Markus Armbruster
2018-12-13 21:28 ` Eric Blake
2018-12-14 10:16 ` [Qemu-devel] [Qemu-trivial] " Laurent Vivier
2018-12-14 10:43 ` Philippe Mathieu-Daudé [this message]
2018-12-17 13:29 ` Laurent Vivier
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=db306820-d31e-b277-182e-09f37c6d0e2e@redhat.com \
--to=philmd@redhat.com \
--cc=armbru@redhat.com \
--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).