From: Roger Pau Monne Date: Thu, 28 Jun 2018 10:12:07 +0000 (+0200) Subject: libxc: do not return a value from xc_cpuid_policy X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3722 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ac1205de1d6052bbb47f0cf8467f1385ac8e9fe;p=xen.git libxc: do not return a value from xc_cpuid_policy None of the called functions return any errors, so there's no point in returning an int from xc_cpuid_policy. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu --- diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index 364f802c0f..3d1421aa50 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -592,9 +592,9 @@ static void xc_cpuid_pv_policy(xc_interface *xch, } } -static int xc_cpuid_policy(xc_interface *xch, - const struct cpuid_domain_info *info, - const unsigned int *input, unsigned int *regs) +static void xc_cpuid_policy(xc_interface *xch, + const struct cpuid_domain_info *info, + const unsigned int *input, unsigned int *regs) { /* * For hypervisor leaves (0x4000XXXX) only 0x4000xx00.EAX[7:0] bits (max @@ -604,15 +604,13 @@ static int xc_cpuid_policy(xc_interface *xch, if ( (input[0] & 0xffff0000) == 0x40000000 ) { regs[0] = regs[1] = regs[2] = regs[3] = 0; - return 0; + return; } if ( info->hvm ) xc_cpuid_hvm_policy(xch, info, input, regs); else xc_cpuid_pv_policy(xch, info, input, regs); - - return 0; } static int xc_cpuid_do_domctl(