]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
x86/vpic: fix vpic_elcr_mask macro parameter usage
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 24 Aug 2020 13:35:49 +0000 (15:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 24 Aug 2020 13:35:49 +0000 (15:35 +0200)
vpic_elcr_mask wasn't using the v parameter, and instead worked
because in the context of the callers v would be vpic. Fix this by
correctly using the parameter. While there also remove the unneeded
casts to uint8_t and the ending semicolon.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vpic.c

index 61f4b6784c1f8a3fedd8353307181248fa1d89e5..936c7b27c6bdee8f7980c55d9f7c51d6deb4788e 100644 (file)
@@ -41,7 +41,7 @@
 #define vpic_lock(v)   spin_lock(__vpic_lock(v))
 #define vpic_unlock(v) spin_unlock(__vpic_lock(v))
 #define vpic_is_locked(v) spin_is_locked(__vpic_lock(v))
-#define vpic_elcr_mask(v) (vpic->is_master ? (uint8_t)0xf8 : (uint8_t)0xde);
+#define vpic_elcr_mask(v) ((v)->is_master ? 0xf8 : 0xde)
 
 /* Return the highest priority found in mask. Return 8 if none. */
 #define VPIC_PRIO_NONE 8