Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp136311rwi; Thu, 3 Nov 2022 18:26:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7fNIRDiRD7JC2F9RH2WCwCJXd0++lhQY57sg63y5W5uShSnAHya0jSZuiRQB2a3i33Vdu9 X-Received: by 2002:a17:907:6da3:b0:78e:2a5f:5aaf with SMTP id sb35-20020a1709076da300b0078e2a5f5aafmr31766851ejc.554.1667525191980; Thu, 03 Nov 2022 18:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667525191; cv=none; d=google.com; s=arc-20160816; b=MX8HBlRdU5kxq3fHVjPsI/QmZBVjjulPzkAslfqvcIgCnCvbhGDzRtCcV1XjBZGpGj zc0Qz74HmAONSQx671TLB0DjuRC/IxsJ8cVil2hkAhJaXF7iORg+BW/MV2MTtkUsjzZb 0ENDw5y7QK5kltqpZAWkXjwR8brLvtfBDM3eP80DroNB2hP+e2NN7PaJCui6d1CPmHjd 93hNYSiqBpP1UyhcF1U01LtLnKlxyNuXQUTFxJclJD3hjvRYQaEFXQBQtimw99ii4qKt yq1pDIQq4GOQ8ZAY44lVTBUz/gTWMk3fjyUy8x872+0Sqc8y3bGAME1ud0AXVw901vfB ADOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PhTtqhEF15BxpK1XmpavjSBZqYy6DJpbtyG0e5M4LsE=; b=f2Zvs+TwwTfjGIWt6wrY3CV/8GlB2K5NEt5x7Ur+FmI523i42AEnSKmvFvMvo6+73L 05YITX+nSIQieZBPeRYmZx+2RlElwaemTECLy0oo+q3N/ZOV2PVH/GKyAq4gwEMyjOPl dVa4J7kb9omlrvWCnfNfXLtUms7RzVrENkWG3pkMT/Uv8IW51DFLXDXhlZ6Jgjt1slsd +gCAOo6cPHei+hogePdeucZ/nBXkIwTEITq6BldJXl4mBHYOU7Vr8sMZzxh+46CEJSah EDdfxIK5JjqEmK+sYl2b0CeSK5ICe8Z2n6y/68Nx5TZ8jUPQwXnyossu2k6k0l9xdD6G p3IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz30-20020a1709077d9e00b0078d0a31f987si3504170ejc.755.2022.11.03.18.26.08; Thu, 03 Nov 2022 18:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbiKDBGq (ORCPT + 97 others); Thu, 3 Nov 2022 21:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiKDBGp (ORCPT ); Thu, 3 Nov 2022 21:06:45 -0400 Received: from out199-3.us.a.mail.aliyun.com (out199-3.us.a.mail.aliyun.com [47.90.199.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E2810B0; Thu, 3 Nov 2022 18:06:42 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VTuSVaz_1667523997; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VTuSVaz_1667523997) by smtp.aliyun-inc.com; Fri, 04 Nov 2022 09:06:39 +0800 From: Yang Li To: davem@davemloft.net Cc: edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] net: ethernet: Simplify bool conversion Date: Fri, 4 Nov 2022 09:06:35 +0800 Message-Id: <20221104010635.68515-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./drivers/net/ethernet/renesas/rcar_gen4_ptp.c:32:40-45: WARNING: conversion to bool not needed here Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2729 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c b/drivers/net/ethernet/renesas/rcar_gen4_ptp.c index c007e33c47e1..37f7359678e5 100644 --- a/drivers/net/ethernet/renesas/rcar_gen4_ptp.c +++ b/drivers/net/ethernet/renesas/rcar_gen4_ptp.c @@ -29,7 +29,7 @@ static const struct rcar_gen4_ptp_reg_offset s4_offs = { static int rcar_gen4_ptp_adjfine(struct ptp_clock_info *ptp, long scaled_ppm) { struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); - bool neg_adj = scaled_ppm < 0 ? true : false; + bool neg_adj = scaled_ppm < 0; s64 addend = ptp_priv->default_addend; s64 diff; -- 2.20.1.7.g153144c