[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 1/7] qobject: Catch another straggler for use of
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH v2 1/7] qobject: Catch another straggler for use of qdict_put_str() |
Date: |
Thu, 5 Jul 2018 12:58:05 -0300 |
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/qobject.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir . --in-place
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Acked-by: Michael S. Tsirkin <address@hidden>
---
qobject/block-qdict.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c
index 80c653013f..ae363708ab 100644
--- a/qobject/block-qdict.c
+++ b/qobject/block-qdict.c
@@ -572,7 +572,7 @@ static QObject *qdict_crumple_for_keyval_qiv(QDict *src,
Error **errp)
if (!tmp) {
tmp = qdict_clone_shallow(src);
}
- qdict_put(tmp, ent->key, qstring_from_str(s));
+ qdict_put_str(tmp, ent->key, s);
g_free(buf);
}
--
2.18.0
- [Qemu-devel] [PATCH v2 0/7] Coccinelle cleanups, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 1/7] qobject: Catch another straggler for use of qdict_put_str(),
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v2 2/7] error: Remove NULL checks on error_propagate() calls, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 4/7] tests/bios-tables-test: Remove an useless cast, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 3/7] xen: Use the PCI_DEVICE macro, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 5/7] ui/vnc: Remove useless parenthesis around DIV_ROUND_UP macro, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 6/7] hw/pci-host: Remove useless parenthesis around DIV_ROUND_UP macro, Philippe Mathieu-Daudé, 2018/07/05
- [Qemu-devel] [PATCH v2 7/7] hw/intc/gicv3: Remove useless parenthesis around DIV_ROUND_UP macro, Philippe Mathieu-Daudé, 2018/07/05