diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-01-14 21:25:00 +0100 |
---|---|---|
committer | Andreas Larsson <andreas@gaisler.com> | 2025-01-17 16:33:48 +0100 |
commit | 2cec2c4dc90cbf5194c1acef08c1e74f0437af95 (patch) | |
tree | 5f04dd72a9ba81aeb583dd47723dcda2e5846e2c /arch/sparc/kernel | |
parent | 4b9f0bdc2071aa0c04f8bb1f624ee678221d938e (diff) |
sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs()
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>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/irq_64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c index 944659f5ae48..ded463c82abd 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) |