Received: by 10.213.65.68 with SMTP id h4csp1322440imn; Thu, 29 Mar 2018 02:31:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx494KouFsf6ZzgONOxVMqXWKZ2+1tmafORUCofPtOly25XSCBo0VP0kTaISAaRbh5HxkS458 X-Received: by 2002:a17:902:6085:: with SMTP id s5-v6mr7536578plj.307.1522315869231; Thu, 29 Mar 2018 02:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522315869; cv=none; d=google.com; s=arc-20160816; b=AGHno1FVQvo7BBFifvSUHQmsxAY3dV56HMfUkGog5d/Zf07uwdsk2Bsu17X7a2z4sz J+refpwtZVSDgbrJ730hjBKVcJ7SCgjWxOQVvhzdlWKLVcABbJqUWok6emcbLdI5lH/3 cQEOzbja2OQbPfK9mL7PPYot+yGfU0Ajmj60KwyTpeaYDpzZTuaZjMAT/1u2ci16ndCl itbS3TsujWbJx0SoOFFPO6AlNTm8coXeHPHf9J4Jkx1kbmuZTySbbSTTvOPkJNhP3yqa y/bBKK2wAjkt2LPHhDaHOID/NL5fssG499l/gws8OK5F/WQiox8WVYcyJWcFUnuZo+J6 5/cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=joXps3Z5iQ64hH1EKnL15nxPMr6voe77b20DvO1Plak=; b=lDlCv+MqvNjX3Wo6gYlBUKy5QOPTe84nhdvhsSS3XSk5wWJoDQMpyd+BFme0exnMQm qeDxh7/8kdLUdFpAD0qdTApMKRA85z/i/ZIMZhymM8YzqabDK6JOIPznqZsoXph9ylkc 6j8UyzZHvSFixzq9039HaQ6GiGGzXXWiOrtZbGpr/57Om1a8w9TEeIj7KDLHp6CaMDL1 CoctSKbijyeSWEfIfGkDqFgdLyXTXFF7aYcefq7aRuiGGVdLP77FIc5TM96raCWx84s8 YEeVaL0YgpvI0+igGu3rPXi2bG9K89wsEu5WoanPMsgGo77j9IR8JOvIbm9uER1at6GH cgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=EyjcwmQt; 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 ay2-v6si5222728plb.749.2018.03.29.02.30.53; Thu, 29 Mar 2018 02:31:09 -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; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=EyjcwmQt; 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 S1751897AbeC2JaA (ORCPT + 99 others); Thu, 29 Mar 2018 05:30:00 -0400 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50]:63650 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750884AbeC2J36 (ORCPT ); Thu, 29 Mar 2018 05:29:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=joXps3Z5iQ64hH1EKnL15nxPMr6voe77b20DvO1Plak=; b=EyjcwmQtr9wsYXqX1OGsGYxA6OzIfSo6teNPY5EM44Py2h259sdjWMHHdohYf3kgvUuBKBTZJC5J+pxhahqdOcC0I9b+qu6UE8BYFphJ7wSjbTHBvvww+MPl09Vg/uC26LnzcIRNn/4OiqALr+ViTZLS4svJzAXOO1G6YrvhSHk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by CY4PR03MB2631.namprd03.prod.outlook.com (2603:10b6:903:75::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Thu, 29 Mar 2018 09:29:54 +0000 Date: Thu, 29 Mar 2018 17:29:40 +0800 From: Jisheng Zhang To: Thomas Petazzoni , David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] net: mvneta: remove duplicate *_coal assignment Message-ID: <20180329172940.4a5f592c@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0002.jpnprd01.prod.outlook.com (2603:1096:404::14) To CY4PR03MB2631.namprd03.prod.outlook.com (2603:10b6:903:75::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 358cea8e-9745-4e9d-7e01-08d59557a20d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:CY4PR03MB2631; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2631;3:LUBlm1Mjurt/zjb9L7b5oVNp7IADY7WEVIv1PZ4UXlW/k1MRLkZV3LVwtSxOG5Xfy5V5Uk8Lkemntq048qt+aWrR3nOojy6L8M0Cj3TlagCxr5kzUshiG1csqLHzT1ykSFRYHRfyRP+PPWgpy/zxrd7QvvlsBqKwbM47x/jGGqRZeUeju+g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VpyULUDjQzWSCnMdZ2OyWvj1ohxNC0EFqeV/WEy9it+0t03mL50gf8pj+cVBSmBCe6AflKgG3i46R6MEbrgWPayTzSC+3Mi/5q2zWUm4RxlUVAxZJv10fHmLZoq7qFteuD2G3us+20/k5qetWuoh8kJoxnFg+5fy1Cu0fqE2TqmcyH9lo;4:H6okmPjRwBixsEaEkXxhkQbojel8WNljEWyS5EgQcrXUHEnU/YCGtc3Vr66smvIpryrRZ/nLtzvT3cnaiaAcnR1LmYK8Y5BxEpBrN/35PrCIwViTO7AesGo6GidNRi3kRNHj5k6rmiaS4PnCO7AaeeOxwCE1JZY4ruvsOjyY9HyfQ0IkvOEAynLWkvBZG9EX2qXh6s91m5p/fMJXrRwwhDl8SXhuuZrPApOFJhnwQ3/0CiiyTEj851gS6z0XbLlbYu9lyQzuQM29LZ8gy0jP6Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CY4PR03MB2631;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB2631; X-Forefront-PRVS: 0626C21B10 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(366004)(396003)(346002)(39380400002)(199004)(189003)(9686003)(50466002)(8676002)(50226002)(68736007)(16526019)(55016002)(72206003)(8936002)(6116002)(81156014)(66066001)(53936002)(23726003)(26005)(47776003)(81166006)(486005)(486005)(2906002)(1857600001)(186003)(86362001)(478600001)(230700001)(6506007)(386003)(3846002)(956004)(33896004)(1076002)(97736004)(110136005)(316002)(52116002)(105586002)(59450400001)(305945005)(7696005)(106356001)(25786009)(476003)(7736002)(4326008)(6666003)(5660300001)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2631;H:xhacker.debian;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2631;23:6pjC22sY8+ZXrMnIbal7ZQwn5hMEku5n6+tXeUxFi?= =?us-ascii?Q?V3S1Uc91iCQgFEwdelRO2+RfPtB9giFA0q7Rq+x4AYgAWcx7Zy/XPakxt10a?= =?us-ascii?Q?kdLi1jaUkvkgFKh9QC4XkaIXaLzmym1mrCb3UT+zQjAnNPMSpn6OsitbMWUn?= =?us-ascii?Q?arw9GBpuwUbs5VJ94QmGoOxnb2iEyP+C4g8P3wLaLIeR3N1OYi5GXPfIYeEY?= =?us-ascii?Q?gVH7hEsBEE8B+RI5TrUAuySlomy9vdL0EiZPpmM00GdO/ZauMJPPw2LjFwAk?= =?us-ascii?Q?nct+JpGPqnTRo+/SAGUk5dXzhqcLoR9kUafaGFIuQq88tS00o5R87avwUTQ2?= =?us-ascii?Q?e18wbZoCaKQyaPW62CTskYokPCRdDAoT7uhkEpzBx4eYGFEIlgYPwXCS9Jra?= =?us-ascii?Q?tb1fCTIQpIaMzmkK8l7pexH3D1vkIT+CtCYyx61HIOwQOrLerzP4aIrmLmA9?= =?us-ascii?Q?isZWbYi9nKupJ1D2QZc1Y1IepxWlDsEh7Th5eEIajCceGs/tnHEVE8TOpG+3?= =?us-ascii?Q?TYrMSkroyC8J73AnKf7pnRUcRB0AE2Dq7uY7cQur8cbcSbT7kkZ5WbYYGCq9?= =?us-ascii?Q?HOALCbFCNSPB9z0PIt0oOpZ/9IWly+21bnR+6jW8IeTREo/H06lFMydSQNJ/?= =?us-ascii?Q?KzfBD3cCIl9FHLCxzL6gGpm8VcoSGpK+4fHQJHKDfSbQDC+iFoW6gZzZZ1Od?= =?us-ascii?Q?SXEuw/PFbFUURbWFi2nEvcVB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Qe42BlXYqF2ca4VcaCRI7St9I0s60UfrKCRJp8/Vj0oLbixYqnFjU99HbNg4dNQEnvNOnmY5S14qBe5WJZ6B9/S5rUtm5KUSWJlTPlyARMDBj5Fb3/ElliDJuWvm9UjmIpc7LJa0V3kv3MAxUaexyyUX+FKL6Nfu9AFijZAZGwVXj0yHfeUuKTX1v/Tt/U25Vhwm3/TorE+koYWqCRPnfFDyXVI1yBVZj/GfkJsVhnezl4eSi2tJph3mlzNc7AdsAskhPith20OWTZHSZZzJFJ9wJtC/e5+v6i97Jw9RIolx8uSQqaXJtHC8ItRfJw==;5:+rQ0cKp8ycTmQWJ6KvhwNMy6VmjO2hLuJz86nq/JpnT9Io/I1aZdPmdn21ICr2bR7X77gWt4Zqci6p7JilXbMpcEPIYzQ085qLkm7H9pXdSSrFOF/p4bIYiWIi3uZpxOsJe297ikeX642nFZ0NLXfQ6AqNQPWI24HTXN8TBgxxU=;24:p9xXqQ35zY4Sq/mEPLV92dbNOUcztvN4xW9iySNeLXIhtcUAHmsvA3p2crpQmgrEazvL+7bQjDpYlMc+6rBHRe1hBJrDV43aEXIHviom7Ho= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2631;7:MJKlApKiVG4h18oPFWrwM9bn4Xav2dkilG7Q9g0/cKW1aF3HX3DIXHr/+NLxAOYy7LiG08i5tCSAnGGFt8GuGSc2fYgYldreugay8ZILXmH6iPFjRv7HkA4FxTrSIhqRGLUhy9P2nLb5BR6FWfgKDmEmM6clwestViJaYgfyUZ2uJzttHVNX2XIQNqYcLTswhtpYHwsvNrHr+7iwKI/D4heNTqTfE14GU98N57QEZ5JaREohckvwXJHMWHhDPPUA X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2018 09:29:54.2060 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 358cea8e-9745-4e9d-7e01-08d59557a20d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2631 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/marvell/mvneta.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index eaa4bb80f1c9..30aab9bf77cc 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -1555,7 +1555,6 @@ static void mvneta_rx_pkts_coal_set(struct mvneta_port *pp, { mvreg_write(pp, MVNETA_RXQ_THRESHOLD_REG(rxq->id), value | MVNETA_RXQ_NON_OCCUPIED(0)); - rxq->pkts_coal = value; } /* Set the time delay in usec before RX interrupt will be generated by @@ -1571,7 +1570,6 @@ static void mvneta_rx_time_coal_set(struct mvneta_port *pp, val = (clk_rate / 1000000) * value; mvreg_write(pp, MVNETA_RXQ_TIME_COAL_REG(rxq->id), val); - rxq->time_coal = value; } /* Set threshold for TX_DONE pkts coalescing */ @@ -1586,8 +1584,6 @@ static void mvneta_tx_done_pkts_coal_set(struct mvneta_port *pp, val |= MVNETA_TXQ_SENT_THRESH_MASK(value); mvreg_write(pp, MVNETA_TXQ_SIZE_REG(txq->id), val); - - txq->done_pkts_coal = value; } /* Handle rx descriptor fill by setting buf_cookie and buf_phys_addr */ -- 2.16.3