From: Thomas Huth <thuth@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: QEMU Trivial <qemu-trivial@nongnu.org>, pbonzini@redhat.com
Subject: Re: [PATCH] qemu-option: Drop dead assertion
Date: Thu, 10 Jun 2021 11:29:36 +0200 [thread overview]
Message-ID: <deea178f-ea30-e2ca-4d0e-61a8c02b3b67@redhat.com> (raw)
In-Reply-To: <20210610085026.436081-1-armbru@redhat.com>
On 10/06/2021 10.50, Markus Armbruster wrote:
> Commit c6ecec43b2 "qemu-option: Check return value instead of @err
> where convenient" simplified
>
> opts = qemu_opts_create(list, qdict_get_try_str(qdict, "id"), 1,
> &local_err);
> if (local_err) {
> error_propagate(errp, local_err);
> return NULL;
> }
>
> to
>
> opts = qemu_opts_create(list, qdict_get_try_str(qdict, "id"), 1, errp);
> if (!opts) {
> return NULL;
> }
>
> but neglected to delete
>
> assert(opts != NULL);
>
> Do that now.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> util/qemu-option.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/util/qemu-option.c b/util/qemu-option.c
> index 4944015a25..3fa0b13378 100644
> --- a/util/qemu-option.c
> +++ b/util/qemu-option.c
> @@ -1028,8 +1028,6 @@ QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict,
> return NULL;
> }
>
> - assert(opts != NULL);
> -
> for (entry = qdict_first(qdict);
> entry;
> entry = qdict_next(qdict, entry)) {
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2021-06-10 9:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-10 8:50 [PATCH] qemu-option: Drop dead assertion Markus Armbruster
2021-06-10 9:29 ` Thomas Huth [this message]
2021-07-09 9:00 ` 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=deea178f-ea30-e2ca-4d0e-61a8c02b3b67@redhat.com \
--to=thuth@redhat.com \
--cc=armbru@redhat.com \
--cc=pbonzini@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).