mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Monitor: remove unneeded checks
It's not needed to check the return of qobject_from_jsonf() anymore, as an assert() has been added there. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
668e3cac4f
commit
ba14414174
4 changed files with 0 additions and 12 deletions
|
@ -183,8 +183,6 @@ static void migrate_put_status(QDict *qdict, const char *name,
|
|||
obj = qobject_from_jsonf("{ 'transferred': %" PRId64 ", "
|
||||
"'remaining': %" PRId64 ", "
|
||||
"'total': %" PRId64 " }", trans, rem, total);
|
||||
assert(obj != NULL);
|
||||
|
||||
qdict_put_obj(qdict, name, obj);
|
||||
}
|
||||
|
||||
|
@ -258,7 +256,6 @@ void do_info_migrate(Monitor *mon, QObject **ret_data)
|
|||
*ret_data = qobject_from_jsonf("{ 'status': 'cancelled' }");
|
||||
break;
|
||||
}
|
||||
assert(*ret_data != NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue