]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/pv: remove unlikely() from BUG_ON() condition in pv_map_ldt_shadow_page()
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 22 Oct 2024 11:46:07 +0000 (13:46 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Oct 2024 15:16:43 +0000 (16:16 +0100)
BUG_ON() itself already contains an unlikely() wrapping the bug condition.

No functional change.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/mm.c

index 24f0d2e4ff7dd3ea9ff0617c3be42482731bb71d..187f5f6a3e8c05b6d73d8756fc891c30d16b8750 100644 (file)
@@ -55,7 +55,7 @@ bool pv_map_ldt_shadow_page(unsigned int offset)
     l1_pgentry_t gl1e, *pl1e;
     unsigned long linear = curr->arch.pv.ldt_base + offset;
 
-    BUG_ON(unlikely(in_irq()));
+    BUG_ON(in_irq());
 
     /*
      * Prior limit checking should guarantee this property.  NB. This is