Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp329850rwl; Fri, 4 Nov 2022 00:27:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Zr91xKzCG/gJda2MqUNS4HqtRm36o23oHDQFq8qvXk4wGJPCpplzimzKybDcHlAxK8Y+T X-Received: by 2002:a05:6a00:22cf:b0:56d:1c55:45d0 with SMTP id f15-20020a056a0022cf00b0056d1c5545d0mr31642556pfj.54.1667546872606; Fri, 04 Nov 2022 00:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667546872; cv=none; d=google.com; s=arc-20160816; b=weAxxHDwBdvoBa6S/NnAVGwpPuiswfduul2Ga8Lefj19ZE/rwn/yDlcgi5h4tT1Bxe GSfwf4xHA9BqqWI3oEJvICuV1G8rdmB7oHeE423kMylS4KfHp6dTK5peuVdIHC+nyzXy YJFpQeRNTGvMgnIygIk0/ofUvSU26ZBW39F9uU+MmbZBeHH6ZnzJSGewvqCkcmqLC6Nl XZrwBaGUuhVoZILffyDp53rXKAbQbvyHC95Vqf9hYF/EbAWBYG98TPXvJ8bNPkYeqxxX wr/K5IQSItNwiTEqI/cYReX8QD2/dmMyiHa01aqPvb7gqk7uMVpKgBCz/KcfGLCewfn6 pgkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vnXXi3dtDeA8axtgZhnSxDrgwZYg0E3gMcTkynU2jnc=; b=IfjMR6FbstJXHfa8ltqx7GA0EewAo/nD1rj1705o4XzECDKYEsU9gYMsA3f/6n6t0e v45Uwz7X40fqOR2q6sjhC24QSMZITO25JKeSH3VO2Zl27rUQTc3qFYVRFanSKntp9st4 opcHmZ53XPXJYRtapZt2W+x0tlFQ3mjlbAMp9aURshWdIfxo+UOzS3eZvxWv3RI1QVoG QpMWXB+LJWSmpQqW8GK07lpSQLoKo2UCGNQ+4gLrK7a1IQIuwAmzlobtzXvW7kryXMib N/FxjtfaAnZauYstH/dZaA+RHrjWMvxPFdRqmEThXIpB1t23G4qEdoxS5sepZBbSdKZj gqxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oweGMtYq; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a056a0024c500b005397c4ad9e1si4102535pfv.134.2022.11.04.00.27.40; Fri, 04 Nov 2022 00:27:52 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oweGMtYq; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbiKDGR2 (ORCPT + 95 others); Fri, 4 Nov 2022 02:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbiKDGRX (ORCPT ); Fri, 4 Nov 2022 02:17:23 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1AD28E30; Thu, 3 Nov 2022 23:17:22 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id l11so6202583edb.4; Thu, 03 Nov 2022 23:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vnXXi3dtDeA8axtgZhnSxDrgwZYg0E3gMcTkynU2jnc=; b=oweGMtYqZ7/L36euTghQ0xwNttLV0blhlZdGd9z30tXMFbZEG4H5+VveF/DO7F4dzg dCVcer72QSzmCGOEKz0FB+EwrXXfhXlfJU6Secs2DOy8XP7AHE31KtbL+OUUE0OCJ6Hr yrA91oVSsY7IRPk6F8QVClJAutQGbgIpB9s/hd0wYjdUTZGEp7ByXlZ2g8ZjS1hv6rQS ndeVc8Mmmt2q2ha7muD2EUHJPgMQ4FYk9ZRyIdjwVXQSGGIbXEYlJedplscA5n36dygm RZ86iK2RMdudYVhtuV5SFhEcL9qy3ueArwoFUt/9OJZx4f1oXyEiIQK40Jern8LvLyLd +rlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vnXXi3dtDeA8axtgZhnSxDrgwZYg0E3gMcTkynU2jnc=; b=xNSuiMT3va9rqi4j7ej7hJTJEIzH+ynqfSWPW+/1hkT8iWZ1FIy+/Zlr8AZh8AHS5y QiNoe1sOVCLPK3IhkawJCZvEzQD5jB+mq0+ZBZOBsNlQaNRa+3bV4kYw866Kbh+QPbEU litg1xb5N0fwNGrFbH6vu4vALSab/aXFBkhq6bVy86+5srAtC3UJo0fbGirFMRLDchmL nmVZ3d7lco3EB2Qu9TUYh2jWqmT2TY0Rf5dn8xDw/exwSHiQNEoNkNn2UWLwlYSPm/59 IwzRyYa1zj4NkUwACIu2D0tgSjDM5kgg93MUR3ttctqLPIYROfEvtRHtBnDjjwrhbB+5 5hOg== X-Gm-Message-State: ACrzQf3dYrjuC8Gw5SarGW9ER8i2yH0rhcWa8+T+FysQ4icjGA+PlNd0 7agMUPpIM4uo7Dg8S09ygp4= X-Received: by 2002:aa7:df94:0:b0:461:aff8:d3e1 with SMTP id b20-20020aa7df94000000b00461aff8d3e1mr34530709edy.10.1667542641116; Thu, 03 Nov 2022 23:17:21 -0700 (PDT) Received: from hoboy.vegasvil.org (81-223-89-254.static.upcbusiness.at. [81.223.89.254]) by smtp.gmail.com with ESMTPSA id sg43-20020a170907a42b00b0077d37a5d401sm1406870ejc.33.2022.11.03.23.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 23:17:20 -0700 (PDT) Date: Thu, 3 Nov 2022 23:17:18 -0700 From: Richard Cochran To: Yang Li Cc: bagasdotme@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next v2] net: ethernet: Simplify bool conversion Message-ID: References: <20221104030313.81670-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221104030313.81670-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Fri, Nov 04, 2022 at 11:03:13AM +0800, Yang Li wrote: > 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; Please preserve reverse Christmas tree order. Thanks, Richard