From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: ari@tuxera.com, kwolf@redhat.com, mreitz@redhat.com,
qemu-block@nongnu.org
Subject: [Qemu-devel] [PATCH] block: Replace qdict_put() by qdict_put_obj() where appropriate
Date: Thu, 13 Dec 2018 18:51:54 +0100 [thread overview]
Message-ID: <20181213175154.5242-1-armbru@redhat.com> (raw)
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/qobject.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir block --in-place
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
block/blklogwrites.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/block/blklogwrites.c b/block/blklogwrites.c
index ff98cd5533..d2e01bdb1d 100644
--- a/block/blklogwrites.c
+++ b/block/blklogwrites.c
@@ -295,10 +295,9 @@ static void blk_log_writes_refresh_filename(BlockDriverState *bs,
qdict_put_str(opts, "driver", "blklogwrites");
qobject_ref(bs->file->bs->full_open_options);
- qdict_put_obj(opts, "file", QOBJECT(bs->file->bs->full_open_options));
+ qdict_put(opts, "file", bs->file->bs->full_open_options);
qobject_ref(s->log_file->bs->full_open_options);
- qdict_put_obj(opts, "log",
- QOBJECT(s->log_file->bs->full_open_options));
+ qdict_put(opts, "log", s->log_file->bs->full_open_options);
qdict_put_int(opts, "log-sector-size", s->sectorsize);
bs->full_open_options = opts;
--
2.17.2
next reply other threads:[~2018-12-13 17:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 17:51 Markus Armbruster [this message]
2018-12-13 21:28 ` [Qemu-devel] [PATCH] block: Replace qdict_put() by qdict_put_obj() where appropriate Eric Blake
2018-12-14 8:13 ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2019-01-08 19:06 ` [Qemu-devel] " Kevin Wolf
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=20181213175154.5242-1-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=ari@tuxera.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@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).