Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1058678rwl; Fri, 4 Nov 2022 09:17:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QmVWw7piK8UeUCk9HouYII6ATfREvj3tjCkTX9jxkcY8KqXJ6y0gPmOAAW82wXlzEVR8V X-Received: by 2002:a17:906:9746:b0:78e:11cc:3bb3 with SMTP id o6-20020a170906974600b0078e11cc3bb3mr33684647ejy.379.1667578663280; Fri, 04 Nov 2022 09:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667578663; cv=none; d=google.com; s=arc-20160816; b=GLmiVYXHNbgx6zsTQM07S27E/7U499muIh6Ch7PcfOZg1AYxKJ1+IOiKpA7mfK1AL8 HYLsoj0ZiJDio/R8ilAGumpV4vIh1wBJsps4L59GkEpYv8v15ge/uKxXQcR7m4ipQU07 9yAj15OlArmtv0y122GtA9cQWjccz6TQpQrdx7bcmLYEAllxTRw0NCFlmhvM2E6swn5i lMRK2qoWnNM1QBoja7P9JKuY62amkAbV7V74L67eMgCDgO55q9Q6Y0sGKpbdzjPH8VSb LykkXQP/2Er4HQXGlR86HEUj5eAJDaZht+cXIh/lYvxfedtvhonQeeEWhdKIIDeFDh1j g+2w== 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=N/hzabIn0VSZXMFrKsceIMGkl0PatMhX/lChydvkt7A=; b=0pdHzwxtVSNw3LEVQMNdcq4dU81jrn6sv68E7BgtKrFjO2ezfJ44DDrnoV+r9xeN57 ekN3huopht1jwNP+Ud1yRNpTSdxMyVyTgHWzFglaiuo4Bw9R59tYCY4hB8RBNy5nbXmp 5wi9m2gHCPDTV8Qek1D1YFYd8Nf+vGmQEU3d2cD13oP0o7mfmVQNTAeqce7FYWr4SFWC Px8lcjp9Tv7qhBsQIlbu/zJOtrKXl+ssl/GHwJNv4xCQRrUgtCedKMMQLzL4Yi9BuJKR 8OmyLBEfHgWHJ8aN2Iusu60ZR8YweGkhq786NQG7aJrq+6TOddCvxPUFLNuWRLEwqkdX LEXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1IyTJYob; 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=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr34-20020a1709073fa200b007ae0db0c454si6726777ejc.635.2022.11.04.09.17.18; Fri, 04 Nov 2022 09:17:43 -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=@lunn.ch header.s=20171124 header.b=1IyTJYob; 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=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232100AbiKDPrG (ORCPT + 96 others); Fri, 4 Nov 2022 11:47:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232700AbiKDPqz (ORCPT ); Fri, 4 Nov 2022 11:46:55 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE3F326C1; Fri, 4 Nov 2022 08:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=N/hzabIn0VSZXMFrKsceIMGkl0PatMhX/lChydvkt7A=; b=1IyTJYob5aKKM+j/jPx02RSEZ9 ELKFRG4wsGm2COkHXOsnGiNTCdr5BD1Pd51dcQFpPrQ7cwhwuzwQfxcPd6NnbXDpoet/q0A1KCjHi b2NPljlyfbdRSsT8KPCffxEorftmsJ6X+zhLzUau8b38uAN2DdClpEViJlUnFH+KMum8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oqyu1-001RXl-Kx; Fri, 04 Nov 2022 16:46:41 +0100 Date: Fri, 4 Nov 2022 16:46:41 +0100 From: Andrew Lunn To: Yang Li Cc: richardcochran@gmail.com, 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 v3] net: ethernet: Simplify bool conversion Message-ID: References: <20221104063731.84008-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221104063731.84008-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,SPF_HELO_PASS,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 02:37:31PM +0800, Yang Li wrote: > The result of 'scaled_ppm < 0' is Boolean, and the question mark > expression is redundant, remove it to clear the below warning: > > ./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 > --- > > change in v3: > --According to Richard's suggestion, to preserve reverse Christmas tree order. Don't send a new version of a patch for at least 24 hours. https://docs.kernel.org/process/maintainer-netdev.html#tl-dr People need time to review your patch and suggest how to make it better. Andrew