Skip to content

Commit 2cec2c4

Browse files
tobluxandreas-gaisler
authored andcommitted
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 <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent 4b9f0bd commit 2cec2c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/sparc/kernel/irq_64.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ static int hv_irq_version;
146146
*/
147147
static bool sun4v_cookie_only_virqs(void)
148148
{
149-
if (hv_irq_version >= 3)
150-
return true;
151-
return false;
149+
return hv_irq_version >= 3;
152150
}
153151

154152
static void __init irq_init_hv(void)

0 commit comments

Comments
 (0)