BUG_ON() itself already contains an unlikely() wrapping the bug condition. No functional change.
Signed-off-by: Roger Pau Monné <roger....@citrix.com> --- xen/arch/x86/pv/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/pv/mm.c b/xen/arch/x86/pv/mm.c index 24f0d2e4ff7d..187f5f6a3e8c 100644 --- a/xen/arch/x86/pv/mm.c +++ b/xen/arch/x86/pv/mm.c @@ -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 -- 2.46.0