diff options
author | Zenghui Yu <yuzenghui@huawei.com> | 2020-02-06 08:57:09 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-02-08 11:01:33 +0100 |
commit | 4bccf1d715fe8f5fe10bd6202c8caa0ae6104cd2 (patch) | |
tree | aa5dfc95958eb7c0ba0fb5d8a252a07d4e39b9af /drivers | |
parent | irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level (diff) | |
download | linux-4bccf1d715fe8f5fe10bd6202c8caa0ae6104cd2.tar.xz linux-4bccf1d715fe8f5fe10bd6202c8caa0ae6104cd2.zip |
irqchip/gic-v4.1: Drop 'tmp' in inherit_vpe_l1_table_from_rd()
The variable 'tmp' in inherit_vpe_l1_table_from_rd() is actually
not needed, drop it.
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200206075711.1275-5-yuzenghui@huawei.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-its.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index ae4e7b355b46..8405ebdd9ffb 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -2415,14 +2415,12 @@ static u64 inherit_vpe_l1_table_from_rd(cpumask_t **mask) for_each_possible_cpu(cpu) { void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base; - u32 tmp; if (!base || cpu == smp_processor_id()) continue; val = gic_read_typer(base + GICR_TYPER); - tmp = compute_common_aff(val); - if (tmp != aff) + if (aff != compute_common_aff(val)) continue; /* |