Skip to content

Commit

Permalink
x86/pv: remove unlikely() from BUG_ON() condition in pv_map_ldt_shado…
Browse files Browse the repository at this point in the history
…w_page()

BUG_ON() itself already contains an unlikely() wrapping the bug condition.

No functional change.

Signed-off-by: Roger Pau Monné <[email protected]>
Acked-by: Andrew Cooper <[email protected]>
  • Loading branch information
royger authored and andyhhp committed Oct 22, 2024
1 parent 0fe607b commit 79560b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xen/arch/x86/pv/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79560b6

Please sign in to comment.