Commit 4e20c1be authored by Markus Armbruster's avatar Markus Armbruster Committed by Kevin Wolf
Browse files

block: Replace qdict_put() by qdict_put_obj() where appropriate



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: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarAlberto Garcia <berto@igalia.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 76f1cf0a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;