libxl: fix libxl_set_memory_target
authorWei Liu <wei.liu2@citrix.com>
Thu, 29 Dec 2016 16:36:31 +0000 (16:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 3 Jan 2017 11:49:52 +0000 (11:49 +0000)
commited5f19aea66fe5a72060d6a795ffcd23b7643ee3
tree56af8bd9a9ab7738a670b89ad30380a82982351c
parent6d9d597713ad8ef1d83d6479f5864818a177db20
libxl: fix libxl_set_memory_target

Commit 26dbc93a ("libxl: Remove pointless hypercall from
libxl_set_memory_target") removed the call to xc_domain_getinfolist, but
it failed to notice that "info" was actually needed later.

Put that back. While at it, make the code conform to coding style
requirement.

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c