From ba14414174b72fa231997243a9650feaa520d054 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Mon, 8 Feb 2010 17:01:28 -0200 Subject: 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 Signed-off-by: Anthony Liguori --- migration.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'migration.c') diff --git a/migration.c b/migration.c index f20315f..2320c5f 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); } } -- cgit v1.1