sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 14 Jan 2025 20:25:00 +0000 (21:25 +0100)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 17 Jan 2025 15:33:48 +0000 (16:33 +0100)
Remove the unnecessary if check and return the result directly.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20250114202502.912690-1-thorsten.blum@linux.dev
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/kernel/irq_64.c

index 944659f5ae48e8fb48a55644d84daad310f32e27..ded463c82abd846c58da1f5895ecc1d24810b180 100644 (file)
@@ -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)