From: Stefan Hajnoczi Date: Wed, 22 Apr 2015 10:15:10 +0000 (+0100) Subject: Revert "hmp: fix crash in 'info block -n -v'" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9419874f709469de16c1bced7731bfecb07fe1cf;p=qemu.git Revert "hmp: fix crash in 'info block -n -v'" This reverts commit 638b8366200130cc7cf7a026630bc6bfb63b0c4c. Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- 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) {