arm64/smp: Drop unsued local variable 'irq'
PATCH 1/1 arm64/smp: Drop unsued local variable 'irq'
Previous commit 5089bc51f81f05ad ("arm64/smp: Use irq_desc_kstat_cpu() in arch_show_interrupts()") started using irq_desc_kstat_cpu() that does not require local variable 'irq' anymore. Hence just drop it. Saves the cost for irq_desc_get_irq() as well.
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Anshuman Khandual <[email protected]>
---
This applies on v5.11-rc2
arch/arm64/kernel/smp.c | 1 - 1 file changed, 1 deletion(-)
arch/arm64/kernel/smp.c +0 -1
@@ -807,7 +807,6 @@ int arch_show_interrupts(struct seq_file *p, int prec)unsigned int cpu, i;for (i =0 ; i <NR_IPI ; i++) { -unsigned int irq =irq_desc_get_irq (ipi_desc[i]);seq_printf (p,"%*s%u:%s" , prec -1 ,"IPI" , i, prec >=4 ?" " :"" );for_each_online_cpu (cpu)
Signature · 1 line
2.20.1