]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hvm: Change parameter names of nestedhvm_vcpu_iomap_get() definition
authorFederico Serafini <federico.serafini@bugseng.com>
Thu, 29 Jun 2023 15:55:30 +0000 (17:55 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Jun 2023 13:18:28 +0000 (14:18 +0100)
Change parameter names of nestedhvm_vcpu_iomap_get() definition to
those used in the function declaration in order to:
1) improve readability;
2) fix violations of MISRA C:2012 Rule 8.3.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/nestedhvm.c

index ec68551127b785318f4787d17703915e58978b63..64d7eec9a1ded21a0f161f83f22179d26a70eb07 100644 (file)
@@ -155,19 +155,19 @@ static int __init cf_check nestedhvm_setup(void)
 __initcall(nestedhvm_setup);
 
 unsigned long *
-nestedhvm_vcpu_iomap_get(bool_t port_80, bool_t port_ed)
+nestedhvm_vcpu_iomap_get(bool_t ioport_80, bool_t ioport_ed)
 {
     int i;
 
     if (!hvm_port80_allowed)
-        port_80 = 1;
+        ioport_80 = 1;
 
-    if (port_80 == 0) {
-        if (port_ed == 0)
+    if (ioport_80 == 0) {
+        if (ioport_ed == 0)
             return hvm_io_bitmap;
         i = 0;
     } else {
-        if (port_ed == 0)
+        if (ioport_ed == 0)
             i = 1;
         else
             i = 2;