libxc: simplify error handling in meminit_hvm
authorWei Liu <wei.liu2@citrix.com>
Thu, 3 Mar 2016 16:01:58 +0000 (16:01 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 10 Mar 2016 18:40:17 +0000 (18:40 +0000)
commitae3c165b8189cb45b437fe6d92da338f2fd3a19f
treedec09aaa79683444413cb462fe085d37ba286db2
parentf233dd6bcd294ff58647cd615fb331ad0704d728
libxc: simplify error handling in meminit_hvm

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 <cardoe@cardoe.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Roger Pau Monne <roger.pau@citrix.com>
tools/libxc/xc_dom_x86.c