]> Git Repo - linux.git/commitdiff
sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs()
authorThorsten Blum <[email protected]>
Tue, 14 Jan 2025 20:25:00 +0000 (21:25 +0100)
committerAndreas Larsson <[email protected]>
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 <[email protected]>
Reviewed-by: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Larsson <[email protected]>
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)
This page took 0.056731 seconds and 4 git commands to generate.