Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 382d2ff

Browse files
Guanrui HuangKAGA-KOKO
authored andcommitted
irqchip/gic-v3-its: Remove BUG_ON in its_vpe_irq_domain_alloc
This BUG_ON() is useless, because the same effect will be obtained by letting the code run its course and vm being dereferenced, triggering an exception. So just remove this check. Signed-off-by: Guanrui Huang <guanrui.huang@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240418061053.96803-3-guanrui.huang@linux.alibaba.com
1 parent 6f28c4a commit 382d2ff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4526,8 +4526,6 @@ static int its_vpe_irq_domain_alloc(struct irq_domain *domain, unsigned int virq
45264526
struct page *vprop_page;
45274527
int base, nr_ids, i, err = 0;
45284528

4529-
BUG_ON(!vm);
4530-
45314529
bitmap = its_lpi_alloc(roundup_pow_of_two(nr_irqs), &base, &nr_ids);
45324530
if (!bitmap)
45334531
return -ENOMEM;

0 commit comments

Comments
 (0)