Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp357050ybl; Thu, 9 Jan 2020 23:26:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxTgmjpXaMG5sPGnTHpRWuS8Poeo1+pZ/LbA0LJiGLJeKDMYeEVlMrW3x80Jl4VE9FMTOEA X-Received: by 2002:a9d:7984:: with SMTP id h4mr1510379otm.297.1578641179368; Thu, 09 Jan 2020 23:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578641179; cv=none; d=google.com; s=arc-20160816; b=zIMUlADYUzCG5pNf1run3xZ7EbFc9/7zON9T3W9tqk1SH7Xd1OYckV/UoPhdh3PRA+ Hc13NnnfN9jm9KxJU+/dYxh1khoOpHp0Pk5u8oW9xNuaaV/HPMgKBoeN5bfKIIrIonqs AN4rmKPt38lVdUSCujkvL4ul6/lHwYYTZD7C4jyWpIXqBNtQBLtsMjSxcGaJ46IfGULb w2kOWDiw8mmYeGqybaMvHuFJ9/czU5ht45ycUAvmDKglWfIjdBFvHuz5ao7djf69u+7X QFNOy816X0FCv05qpN1yjAldl63/GvS2q/8vhvby2wLpRrOXCm9++tmCBwNnFq/b1UAU Pa1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KkdrtxPp+Ctwyu+VEsutANxlyjoyMb6BTHy6tctkpWA=; b=dGn9Yyq+xuGD0iQz0iZupLfdjYOCsR4eBj7Bemfx3/E8hTFJP59Wq6U+kXWiqPvpuK DHPz7aSQ2ViLgRPuiSo4M2sVlHtB7V5n+hkEPOVodFg5kBq3zrIIviq1yIUo+fXtfg5F Syt85bssWlXmQuzM8W9Bb+9L4HxTdPpuZFnxzhpRZjZIx0KuNjxRrnOEO1Fgjh68xFrW Woz3coYD2gKk0MVSGTlA0j3x9bbH0sEm5j/Nl6pLKRWfgtHvOTRS9yo7vmi58mn772xy gpnKjhJ9Vm4mJBXw2cqi+R0aZUzp6qFkpbs2g+c/ciFIBdno2mwEy+/zucW+4+9UMccY 2NBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h138si618202oib.6.2020.01.09.23.26.07; Thu, 09 Jan 2020 23:26:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726445AbgAJHZM (ORCPT + 99 others); Fri, 10 Jan 2020 02:25:12 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8690 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726072AbgAJHZM (ORCPT ); Fri, 10 Jan 2020 02:25:12 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 327F3913EE20074B90DB; Fri, 10 Jan 2020 15:25:10 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 10 Jan 2020 15:25:03 +0800 From: Chen Zhou To: , CC: , , Subject: [PATCH] x86/hyper-v: remove unnecessary conversions to bool Date: Fri, 10 Jan 2020 15:20:47 +0800 Message-ID: <20200110072047.85398-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The conversions to bool are not needed, remove these. Signed-off-by: Chen Zhou --- 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