mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qdict: Add qdict_put_null() helper, and put it to use
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20170825105913.4060-2-marcandre.lureau@redhat.com> [Update to qobject.cocci squashed in, commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
f90cb2846a
commit
0f9afc2a8b
3 changed files with 8 additions and 3 deletions
|
@ -2454,7 +2454,7 @@ static QDict *x86_cpu_static_props(void)
|
|||
|
||||
d = qdict_new();
|
||||
for (i = 0; props[i]; i++) {
|
||||
qdict_put(d, props[i], qnull());
|
||||
qdict_put_null(d, props[i]);
|
||||
}
|
||||
|
||||
for (w = 0; w < FEATURE_WORDS; w++) {
|
||||
|
@ -2464,7 +2464,7 @@ static QDict *x86_cpu_static_props(void)
|
|||
if (!fi->feat_names[bit]) {
|
||||
continue;
|
||||
}
|
||||
qdict_put(d, fi->feat_names[bit], qnull());
|
||||
qdict_put_null(d, fi->feat_names[bit]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue