x86/pv: remove unlikely() from BUG_ON() condition in pv_map_ldt_shadow_page()

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>
This commit is contained in:
Roger Pau Monne authored and Andrew Cooper committed 2024-10-22 16:16:43 +01:00
1 parent 0fe607b2a1
commit 79560b68a1
1 file changed
+1 -1
+1 -1
View 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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.