projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b9f0bd
)
sparc/irq: Remove unneeded if check in sun4v_cookie_only_virqs()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Tue, 14 Jan 2025 20:25:00 +0000
(21:25 +0100)
committer
Andreas 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/irq_64.c
b/arch/sparc/kernel/irq_64.c
index 944659f5ae48e8fb48a55644d84daad310f32e27..ded463c82abd846c58da1f5895ecc1d24810b180 100644
(file)
--- 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)