libxc: Remove dead code (XENVER_capabilities)

The 'caps' is not used anywhere in there.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Konrad Rzeszutek Wilk committed 2016-03-17 10:07:48 -04:00
1 parent 6fdfb600d8
commit 5e88c358d7
1 file changed
-7
-7
View File
@@ -1259,7 +1259,6 @@ static int meminit_hvm(struct xc_dom_image *dom)
unsigned long target_pages = dom->target_pages;
unsigned long cur_pages, cur_pfn;
int rc;
xen_capabilities_info_t caps;
unsigned long stat_normal_pages = 0, stat_2mb_pages = 0,
stat_1gb_pages = 0;
unsigned int memflags = 0;
@@ -1339,12 +1338,6 @@ static int meminit_hvm(struct xc_dom_image *dom)
goto error_out;
}
if ( xc_version(xch, XENVER_capabilities, &caps) != 0 )
{
DOMPRINTF("Could not get Xen capabilities");
goto error_out;
}
dom->p2m_size = p2m_size;
dom->p2m_host = xc_dom_malloc(dom, sizeof(xen_pfn_t) *
dom->p2m_size);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.