Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: Remove unused variable in arch_show_interrupts
@ 2021-01-05 18:03 David Brazdil
  2021-01-05 18:08 ` Catalin Marinas
  0 siblings, 1 reply; 3+ messages in thread
From: David Brazdil @ 2021-01-05 18:03 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Catalin Marinas, linux-kernel, Marc Zyngier, Thomas Gleixner,
	David Brazdil, Will Deacon

Commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
arch_show_interrupts()") removed the only user of variable `irq`.
Remove the unused variable.

Signed-off-by: David Brazdil <dbrazdil@google.com>
---
 arch/arm64/kernel/smp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c
index 6bc3a3698c3d..376343d6f13a 100644
--- a/arch/arm64/kernel/smp.c
+++ b/arch/arm64/kernel/smp.c
@@ -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)
-- 
2.29.2.729.g45daf8777d-goog


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: Remove unused variable in arch_show_interrupts
  2021-01-05 18:03 [PATCH] arm64: Remove unused variable in arch_show_interrupts David Brazdil
@ 2021-01-05 18:08 ` Catalin Marinas
  2021-01-05 18:11   ` David Brazdil
  0 siblings, 1 reply; 3+ messages in thread
From: Catalin Marinas @ 2021-01-05 18:08 UTC (permalink / raw)
  To: David Brazdil
  Cc: Marc Zyngier, Thomas Gleixner, Will Deacon, linux-kernel,
	linux-arm-kernel

On Tue, Jan 05, 2021 at 06:03:14PM +0000, David Brazdil wrote:
> Commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
> arch_show_interrupts()") removed the only user of variable `irq`.
> Remove the unused variable.
> 
> Signed-off-by: David Brazdil <dbrazdil@google.com>

Please search the list for similar patches. I can count 5-6 and the
number is growing ;) (and I queued one already).

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: Remove unused variable in arch_show_interrupts
  2021-01-05 18:08 ` Catalin Marinas
@ 2021-01-05 18:11   ` David Brazdil
  0 siblings, 0 replies; 3+ messages in thread
From: David Brazdil @ 2021-01-05 18:11 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: Marc Zyngier, Thomas Gleixner, Will Deacon, linux-kernel,
	linux-arm-kernel

On Tue, Jan 05, 2021 at 06:08:35PM +0000, Catalin Marinas wrote:
> On Tue, Jan 05, 2021 at 06:03:14PM +0000, David Brazdil wrote:
> > Commit 5089bc51f81f ("arm64/smp: Use irq_desc_kstat_cpu() in
> > arch_show_interrupts()") removed the only user of variable `irq`.
> > Remove the unused variable.
> > 
> > Signed-off-by: David Brazdil <dbrazdil@google.com>
> 
> Please search the list for similar patches. I can count 5-6 and the
> number is growing ;) (and I queued one already).

Sorry, my bad. Need to get my email client out of the kvmarm list once in a
while. O:)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-05 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-05 18:03 [PATCH] arm64: Remove unused variable in arch_show_interrupts David Brazdil
2021-01-05 18:08 ` Catalin Marinas
2021-01-05 18:11   ` David Brazdil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox