summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2015-04-22 11:15:10 +0100
committerKevin Wolf <kwolf@redhat.com>2015-04-28 15:36:09 +0200
commit9419874f709469de16c1bced7731bfecb07fe1cf (patch)
tree9c5d83c6c7c4aa89eec742b7a7b1c5e06b61bc60 /hmp.c
parentdc881b441d74b8fc6c9c007cd03d5d05bca388dd (diff)
downloadqemu-9419874f709469de16c1bced7731bfecb07fe1cf.zip
Revert "hmp: fix crash in 'info block -n -v'"
This reverts commit 638b8366200130cc7cf7a026630bc6bfb63b0c4c. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hmp.c b/hmp.c
index f142d366ef..f31ae2796a 100644
--- a/hmp.c
+++ b/hmp.c
@@ -391,8 +391,7 @@ static void print_block_info(Monitor *mon, BlockInfo *info,
inserted->iops_size);
}
- /* TODO: inserted->image should never be null */
- if (verbose && inserted->image) {
+ if (verbose) {
monitor_printf(mon, "\nImages:\n");
image_info = inserted->image;
while (1) {