[PATCH] x86/hyper-v: remove unnecessary conversions to bool
From: Chen Zhou
Date: Fri Jan 10 2020 - 02:25:19 EST
The conversions to bool are not needed, remove these.
Signed-off-by: Chen Zhou <chenzhou10@xxxxxxxxxx>
---
arch/x86/hyperv/hv_apic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c
index 40e0e32..3112cf6 100644
--- a/arch/x86/hyperv/hv_apic.c
+++ b/arch/x86/hyperv/hv_apic.c
@@ -133,7 +133,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector)
ipi_mask_ex_done:
local_irq_restore(flags);
- return ((ret == 0) ? true : false);
+ return ret == 0;
}
static bool __send_ipi_mask(const struct cpumask *mask, int vector)
@@ -186,7 +186,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector)
ret = hv_do_fast_hypercall16(HVCALL_SEND_IPI, ipi_arg.vector,
ipi_arg.cpu_mask);
- return ((ret == 0) ? true : false);
+ return ret == 0;
do_ex_hypercall:
return __send_ipi_mask_ex(mask, vector);
--
2.7.4