Re: [Xen-devel] [PATCH] libxc: simplify error handling in meminit_hvm

2016-03-07 Thread Roger Pau Monné
On Thu, 3 Mar 2016, Wei Liu wrote: > The hunk that prints out error message can only be reached from the loop > that allocates memory. Move that hunk into the loop to avoid confusing > gcc. > > Reported-by: Doug Goldstein > Signed-off-by: Wei Liu Acked-by: Roger Pau Monné _

Re: [Xen-devel] [PATCH] libxc: simplify error handling in meminit_hvm

2016-03-07 Thread Doug Goldstein
On 3/3/16 10:09 AM, Wei Liu wrote: > The hunk that prints out error message can only be reached from the loop > that allocates memory. Move that hunk into the loop to avoid confusing > gcc. > > Reported-by: Doug Goldstein > Signed-off-by: Wei Liu > --- Reviewed-by: Doug Goldstein -- Doug Gol

[Xen-devel] [PATCH] libxc: simplify error handling in meminit_hvm

2016-03-03 Thread Wei Liu
The hunk that prints out error message can only be reached from the loop that allocates memory. Move that hunk into the loop to avoid confusing gcc. Reported-by: Doug Goldstein Signed-off-by: Wei Liu --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Roger Pau Monne --- tools/libxc/xc_dom_x86.c