Skip to content

Commit 0849cb5

Browse files
Markus Armbrustervivier
Markus Armbruster
authored andcommitted
qemu-option: Drop dead assertion
Commit c6ecec4 "qemu-option: Check return value instead of @err where convenient" simplified opts = qemu_opts_create(list, qdict_get_try_str(qdict, "id"), 1, &local_err); if (local_err) { error_propagate(errp, local_err); return NULL; } to opts = qemu_opts_create(list, qdict_get_try_str(qdict, "id"), 1, errp); if (!opts) { return NULL; } but neglected to delete assert(opts != NULL); Do that now. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 05de778 commit 0849cb5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

util/qemu-option.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,6 @@ QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict,
997997
return NULL;
998998
}
999999

1000-
assert(opts != NULL);
1001-
10021000
for (entry = qdict_first(qdict);
10031001
entry;
10041002
entry = qdict_next(qdict, entry)) {

0 commit comments

Comments
 (0)