Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4721377pxu; Thu, 10 Dec 2020 04:01:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmKsy/Ga1NUnD34jr6jYFMTbl8ZNiPkrfAHV3YXGJNApJNyhc2BmDnXWLFdevDnwVr83IH X-Received: by 2002:a17:906:d8a1:: with SMTP id qc1mr5902151ejb.294.1607601668563; Thu, 10 Dec 2020 04:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607601668; cv=none; d=google.com; s=arc-20160816; b=QCvfpz8VtZiEqWoYzcYVADqLiBT+P++zeaELT4SogGPs2JIaxPpx8BqxZrI6R/jJbT zJyEvhiXBxAVJFx0s3f+D9G7Y+0ULUPFGuE/n4CZP5APplU+msegOpJhVxQdww87rXOg xz5PUb+XjgxsxD6ExdnqcBZl7/7IejosESfQiyw+2gh+ov9c5DuJFr0Y0U8xttX5TdKo e0UdxaXhcTLtr7xL0gD1zsvOaf/jWv9p0/p5l5tZiEP9ptU4cMRn8rfa2B5Zi/1+8XaG RWkqHLHkyb2XoVGjrVtc3pNh17zps/1u7wJX/38p82MQRp6XOhr0sFiRlQe18b/NGIIB kl1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=pYOkBd83tG/Vbs9/OvfQa7Tw+g7HcFOlY3C3aaigeg0=; b=T2OVvAEEJXbPEWTLMTHEtV7nLMKNNxig4IJI4geoPqHems2HZPY6fLiBbbe86g6bJd EypdwFTYKlRFBgyshvM9vIra5WhPdktmFZRfXg/6kW+N7CvUWCFjeymW9cps+n7utlqI fXZRZVPh++37EU2sM6rhTR2+P6lMmwj0B4vVIaITkBKCMnDxAOrBmrnCobGKa7y3BrFh TsAXaOHVAQp6TFefA/ybU/SqrTQarvppKDrAnIdjBEGIA6qkc0Eha892NCeAFbpAOeDM 3MPEA7o+c92PRjO7A3qKvGEBi/4HJOzBhvX6UAXG4VOnjFPot+7gVdhRcuDGh3mMPGRb z/3Q== 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 p12si2413173eji.735.2020.12.10.04.00.46; Thu, 10 Dec 2020 04:01:08 -0800 (PST) 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 S2387661AbgLJLM1 (ORCPT + 99 others); Thu, 10 Dec 2020 06:12:27 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9489 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730686AbgLJLM1 (ORCPT ); Thu, 10 Dec 2020 06:12:27 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CsB736CQxzhplq; Thu, 10 Dec 2020 19:11:11 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Dec 2020 19:11:43 +0800 From: Tian Tao To: , , , , CC: Subject: [PATCH] phy: cpcap-usb: remove unneeded conversion to bool Date: Thu, 10 Dec 2020 19:11:56 +0800 Message-ID: <1607598716-16108-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: drivers/phy/motorola/phy-cpcap-usb.c:146:31-36: WARNING: conversion to bool not needed here. Signed-off-by: Tian Tao --- drivers/phy/motorola/phy-cpcap-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c index 442522b..c276f7c 100644 --- a/drivers/phy/motorola/phy-cpcap-usb.c +++ b/drivers/phy/motorola/phy-cpcap-usb.c @@ -143,7 +143,7 @@ static bool cpcap_usb_vbus_valid(struct cpcap_phy_ddata *ddata) error = iio_read_channel_processed(ddata->vbus, &value); if (error >= 0) - return value > 3900 ? true : false; + return value > 3900; dev_err(ddata->dev, "error reading VBUS: %i\n", error); -- 2.7.4