summaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-08 17:01:28 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-10 13:46:17 -0600
commit4dd4477161cff73fcaf9bd687703606b368676eb (patch)
tree06a7ab9846a3f5d64eea2a5d4c0d7e6389e0a2e3 /migration.c
parent115e4336225e0bcd1326e982e0ac6f01eaa64dc7 (diff)
downloadqemu-4dd4477161cff73fcaf9bd687703606b368676eb.tar.gz
qemu-4dd4477161cff73fcaf9bd687703606b368676eb.tar.bz2
qemu-4dd4477161cff73fcaf9bd687703606b368676eb.zip
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>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/migration.c b/migration.c
index f20315fcfd..2320c5fdf4 100644
--- a/migration.c
+++ b/migration.c
@@ -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);
}
}