Received: by 10.213.65.68 with SMTP id h4csp498467imn; Fri, 30 Mar 2018 09:29:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+J0xAezGFSSfbKzcswKCshxiJtl/7LUP3ZY3ligUmdhf971tm0MJZpFjInPdcIiPDBqdhf X-Received: by 2002:a17:902:a9c4:: with SMTP id b4-v6mr13844814plr.333.1522427381060; Fri, 30 Mar 2018 09:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522427381; cv=none; d=google.com; s=arc-20160816; b=jYyuxOoqH19IRkAplclmPy58FK8/9FAw2cDzltp8rMH1twRp4GvilnBvV79r+UZEBS JCKN5JyFdLYBygQx8uUU/ZCY5jP4cZdj+/bewyIKLHd7C3W1xv496lS4+ksWr++D/BlL PY40UIu2PmCKO2KXG3pidNbaxBkCT6Bg5EWXm2N6OuLop2aPE2gYajNQaWpgVU7NT8XY suBRG5cFySva4F2lsxOc7RmNVE5SXz3f/UGGFnlOmkha376DVtALOX6udFvpLOMSUtG8 i8d8C21Tn4C6m7+t652NaEXxDYNOG/EVAZ+0DMK3ANjuxd2to+PSMk3yTpKu+SG2V0JN dVVQ== 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 :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=2bWTohzFM+UYRBJta0owQYRYphh36yZ3J3O2Sewoylg=; b=J6h8ftS1+6dPD10zkVJ8EmKYTQJ/e2Jf5OecJFtF2hehzgWlMq/CC2GOnEELBHgjxO wTt5zZqJce+/I59e10QM68KiTTkd3T81f5aWUcmVcjVDD6Y9C/cLftNmuZg6XPljDZEB py7Vb7o8vxRHDVyPrEa1I9L6ILl9XXEHFmhI7NlhVhN/zc3uPQYsZIkZSkmSX/okHc8e daLaTHrDg2HYDMCjXSmJrIHC0+5wiBEFkWP+qzSqBIobcMsVJ1CQ40l1XQIaiBg6rrbh AnIuIQMBJVsFcM60UKvn+gtKTq1x/Ky+dRaXedRZQKZB+Gz9n33uhutA2i3WK2NQi3bI kIUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w71si6512068pfd.273.2018.03.30.09.29.25; Fri, 30 Mar 2018 09:29:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbeC3Q2O (ORCPT + 99 others); Fri, 30 Mar 2018 12:28:14 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:32808 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbeC3Q2N (ORCPT ); Fri, 30 Mar 2018 12:28:13 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E327A123C092F; Fri, 30 Mar 2018 09:28:12 -0700 (PDT) Date: Fri, 30 Mar 2018 12:28:11 -0400 (EDT) Message-Id: <20180330.122811.462608073364510854.davem@davemloft.net> To: Jisheng.Zhang@synaptics.com Cc: thomas.petazzoni@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] net: mvneta: remove duplicate *_coal assignment From: David Miller In-Reply-To: <20180329172940.4a5f592c@xhacker.debian> References: <20180329172940.4a5f592c@xhacker.debian> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 30 Mar 2018 09:28:13 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jisheng Zhang Date: Thu, 29 Mar 2018 17:29:40 +0800 > The style of the rx/tx queue's *_coal member assignment is: > > static void foo_coal_set(...) > { > set the coal in hw; > update queue's foo_coal member; [1] > } > > In other place, we call foo_coal_set(pp, queue->foo_coal), so the above [1] > is duplicated and could be removed. > > Signed-off-by: Jisheng Zhang Applied. We could make this convention even more explicit by not passing the coalescing parameter into these helpers, but instead using the value in rxq->foo and txq->foo.