diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index e13a4aa01f..bdec40ad1f 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -1550,13 +1550,10 @@ static int meminit_hvm(struct xc_dom_image *dom) } if ( rc != 0 ) - break; - } - - if ( rc != 0 ) - { - DOMPRINTF("Could not allocate memory for HVM guest."); - goto error_out; + { + DOMPRINTF("Could not allocate memory for HVM guest."); + goto error_out; + } } DPRINTF("PHYSICAL MEMORY ALLOCATION:\n");