From: Paolo Bonzini <pbonzini@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] Drop superfluous conditionals around qemu_opts_del()
Date: Wed, 03 Dec 2014 11:30:03 +0100 [thread overview]
Message-ID: <547EE62B.3070004@redhat.com> (raw)
In-Reply-To: <1417602482-8832-1-git-send-email-armbru@redhat.com>
On 03/12/2014 11:28, Markus Armbruster wrote:
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> hw/core/qdev.c | 4 +---
> qemu-char.c | 4 +---
> 2 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/hw/core/qdev.c b/hw/core/qdev.c
> index 35fd00d..901f289 100644
> --- a/hw/core/qdev.c
> +++ b/hw/core/qdev.c
> @@ -1141,9 +1141,7 @@ static void device_finalize(Object *obj)
> NamedGPIOList *ngl, *next;
>
> DeviceState *dev = DEVICE(obj);
> - if (dev->opts) {
> - qemu_opts_del(dev->opts);
> - }
> + qemu_opts_del(dev->opts);
>
> QLIST_FOREACH_SAFE(ngl, &dev->gpios, node, next) {
> QLIST_REMOVE(ngl, node);
> diff --git a/qemu-char.c b/qemu-char.c
> index a8b01da..ef84b53 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -3825,9 +3825,7 @@ void qemu_chr_delete(CharDriverState *chr)
> }
> g_free(chr->filename);
> g_free(chr->label);
> - if (chr->opts) {
> - qemu_opts_del(chr->opts);
> - }
> + qemu_opts_del(chr->opts);
> g_free(chr);
> }
>
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Drop superfluous conditionals around qemu_opts_del()
Date: Wed, 03 Dec 2014 11:30:03 +0100 [thread overview]
Message-ID: <547EE62B.3070004@redhat.com> (raw)
In-Reply-To: <1417602482-8832-1-git-send-email-armbru@redhat.com>
On 03/12/2014 11:28, Markus Armbruster wrote:
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> hw/core/qdev.c | 4 +---
> qemu-char.c | 4 +---
> 2 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/hw/core/qdev.c b/hw/core/qdev.c
> index 35fd00d..901f289 100644
> --- a/hw/core/qdev.c
> +++ b/hw/core/qdev.c
> @@ -1141,9 +1141,7 @@ static void device_finalize(Object *obj)
> NamedGPIOList *ngl, *next;
>
> DeviceState *dev = DEVICE(obj);
> - if (dev->opts) {
> - qemu_opts_del(dev->opts);
> - }
> + qemu_opts_del(dev->opts);
>
> QLIST_FOREACH_SAFE(ngl, &dev->gpios, node, next) {
> QLIST_REMOVE(ngl, node);
> diff --git a/qemu-char.c b/qemu-char.c
> index a8b01da..ef84b53 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -3825,9 +3825,7 @@ void qemu_chr_delete(CharDriverState *chr)
> }
> g_free(chr->filename);
> g_free(chr->label);
> - if (chr->opts) {
> - qemu_opts_del(chr->opts);
> - }
> + qemu_opts_del(chr->opts);
> g_free(chr);
> }
>
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
next prev parent reply other threads:[~2014-12-03 10:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 10:28 [Qemu-trivial] [PATCH] Drop superfluous conditionals around qemu_opts_del() Markus Armbruster
2014-12-03 10:28 ` [Qemu-devel] " Markus Armbruster
2014-12-03 10:30 ` Paolo Bonzini [this message]
2014-12-03 10:30 ` Paolo Bonzini
2014-12-03 10:33 ` [Qemu-trivial] " Gonglei
2014-12-03 10:33 ` Gonglei
2014-12-10 8:27 ` [Qemu-trivial] " Michael Tokarev
2014-12-10 8:27 ` [Qemu-devel] " Michael Tokarev
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=547EE62B.3070004@redhat.com \
--to=pbonzini@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.