Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3554307ybz; Mon, 20 Apr 2020 05:13:03 -0700 (PDT) X-Google-Smtp-Source: APiQypJhel1sESmmol6ukk1RdY+biWg+A6ffecjiUbaziyx35h+5dg/N1DUDNRXsef1rn6bBPn11 X-Received: by 2002:a05:6402:4a:: with SMTP id f10mr14548361edu.274.1587384783246; Mon, 20 Apr 2020 05:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587384783; cv=none; d=google.com; s=arc-20160816; b=b1X4PUJ1DE33EwQNwVM6cuvWOusxA0KYQM0Vsg+gPL0CxjktzJ/VtwwaIjHepGNzKi AED+CCMkeRRcqQm9wFsesgCa6kohVOsCpLP1AyMFMFquqaeo9HSsixF67xctmDbohCpP HD5rp7XvAb2Qfi/9G7StBPv0yazHvwpe+WNnOoxYKcIyy4/TZHOACvSPf2oql72Xe9pj 6/efmSBeMuFIIeYlh2pjzV7Nk7wQSDBBxLAsCS/4WUb8l24qAJymGP9y2DfugZrOm/TV Y/OxiNXN13V8TpiV48nfBgg5m9AUEj9o+zRH9SerWuQeMyISmSowIQIw8p3teoETaOfl Zrdw== 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=A3IMFp80sJY7EciyCmbkDR7ha1NMMq9t+fTteJnL/+c=; b=wdrF+4CA1UV1woIq+u/vH4h0BkbG7cuDXsb7CzaObJ05KhXPpcCdmzPSfo7gGhBKor iKca2s3YNAljFyMQ4e0sPGj6MJiqH2iDNohD0QodVMMRcb+sWGULF6kTjDUzTY+oxJTW 8XSTvLzna+/5I6CFmtC8XPhDhuir7/LVGjfSwADCaoNp+PCrgJrA2LaKX2T9/kpzjwqZ Bojk9AhYma143wg6AxrVgFFjclcrnBaGz16Din8PgETqXWLrArE4d/sfFFS/VTXblsyA vVGJmAWu1zPl+NmoPbUmXU9utCcYNYqj9hw7iXzm9zBG9trsDFyPtNNDeEdg1dGTMrKa x6LQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn8si367810edb.142.2020.04.20.05.12.40; Mon, 20 Apr 2020 05:13:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726795AbgDTMIr (ORCPT + 99 others); Mon, 20 Apr 2020 08:08:47 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2808 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726470AbgDTMIq (ORCPT ); Mon, 20 Apr 2020 08:08:46 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 71AE1DCD5AB6070BAF84; Mon, 20 Apr 2020 20:08:44 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 20:08:34 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] firmware: qcom_scm: Remove unneeded conversion to bool Date: Mon, 20 Apr 2020 20:35:16 +0800 Message-ID: <20200420123516.7888-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The '>' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/firmware/qcom_scm.c:946:25-30: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/firmware/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 059bb0fbae9e..f714dc010109 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -943,7 +943,7 @@ bool qcom_scm_hdcp_available(void) qcom_scm_clk_disable(); - return ret > 0 ? true : false; + return ret > 0; } EXPORT_SYMBOL(qcom_scm_hdcp_available); -- 2.21.1