[xen master] libxc: do not return a value from xc_cpuid_policy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] libxc: do not return a value from xc_cpuid_policy

patchbot
commit 9ac1205de1d6052bbb47f0cf8467f1385ac8e9fe
Author:     Roger Pau Monne <[hidden email]>
AuthorDate: Thu Jun 28 12:12:07 2018 +0200
Commit:     Andrew Cooper <[hidden email]>
CommitDate: Thu Jun 28 11:32:42 2018 +0100

    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é <[hidden email]>
    Reviewed-by: Andrew Cooper <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 tools/libxc/xc_cpuid_x86.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

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(
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog