diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-02-08 17:01:28 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-10 13:46:17 -0600 |
commit | ba14414174b72fa231997243a9650feaa520d054 (patch) | |
tree | 06a7ab9846a3f5d64eea2a5d4c0d7e6389e0a2e3 /block.c | |
parent | 668e3cac4fdba1137798c4453e018070b099679e (diff) | |
download | qemu-ba14414174b72fa231997243a9650feaa520d054.zip qemu-ba14414174b72fa231997243a9650feaa520d054.tar.gz qemu-ba14414174b72fa231997243a9650feaa520d054.tar.bz2 |
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 'block.c')
-rw-r--r-- | block.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1301,7 +1301,6 @@ void bdrv_info(Monitor *mon, QObject **ret_data) "'removable': %i, 'locked': %i }", bs->device_name, type, bs->removable, bs->locked); - assert(bs_obj != NULL); if (bs->drv) { QObject *obj; @@ -1312,7 +1311,6 @@ void bdrv_info(Monitor *mon, QObject **ret_data) bs->filename, bs->read_only, bs->drv->format_name, bdrv_is_encrypted(bs)); - assert(obj != NULL); if (bs->backing_file[0] != '\0') { QDict *qdict = qobject_to_qdict(obj); qdict_put(qdict, "backing_file", @@ -1398,7 +1396,6 @@ void bdrv_info_stats(Monitor *mon, QObject **ret_data) bs->device_name, bs->rd_bytes, bs->wr_bytes, bs->rd_ops, bs->wr_ops); - assert(obj != NULL); qlist_append_obj(devices, obj); } |