All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs()
@ 2025-01-14 20:25 Thorsten Blum
  2025-01-14 20:29 ` John Paul Adrian Glaubitz
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Blum @ 2025-01-14 20:25 UTC (permalink / raw)
  To: David S. Miller, Andreas Larsson, Randy Dunlap, Bjorn Helgaas,
	Sam Ravnborg, Dawei Li
  Cc: Thorsten Blum, sparclinux, linux-kernel

Remove the unnecessary if check and return the result directly.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/sparc/kernel/irq_64.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
index aff0d24f8c6f..81fb49b089a8 100644
--- a/arch/sparc/kernel/irq_64.c
+++ b/arch/sparc/kernel/irq_64.c
@@ -146,9 +146,7 @@ static int hv_irq_version;
  */
 static bool sun4v_cookie_only_virqs(void)
 {
-	if (hv_irq_version >= 3)
-		return true;
-	return false;
+	return hv_irq_version >= 3;
 }
 
 static void __init irq_init_hv(void)
-- 
2.47.1


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

end of thread, other threads:[~2025-01-17 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 20:25 [PATCH] sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs() Thorsten Blum
2025-01-14 20:29 ` John Paul Adrian Glaubitz
2025-01-15 16:11   ` Thorsten Blum
2025-01-17 15:21     ` Andreas Larsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.