From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by dpdk.org (Postfix) with ESMTP id 3D3601BDCD for ; Thu, 21 Jun 2018 11:45:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ihYnQrMRraQQYHOBkvDo3prICPrk061VT+pWZzETp4=; b=IQ5cGAOBGqbJWqCQo+CrDVsBsnZtl3eSTo9zLjL8MnNcbRKwNk1rs0OsVs3eDmRquVz17wMJrjOgtAi5g+AONTLJFoATLH+7QJ8Wy+K6ewOtNb9NQu3jxfP7oZkv8jGORrlO77jnlRcxqGRaWeCF3aCSegYiyDcq84/ljb3zTfs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 21 Jun 2018 09:45:51 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Pavan Nikhilesh Date: Thu, 21 Jun 2018 15:14:04 +0530 Message-Id: <1529574244-18997-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88ff4e91-fa94-4907-c484-08d5d75bc724 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:xomRpbDC+xc9DeyPcn4ZtmjdeSWwsWW9AKKewjzyVwXJH0FQPPTkv6C+FLPhatwTbVI2lCf2rZ4zt2FshYvbUePzlwduypdaUbl/opiAVjgbe/c3KU9+3gBSgCtYi3PJ/o1T45V3z+iMMQgBI6wQ0sB51Jvj5QtzVLXEmu1Ga2692yGPyQj1SBg6AerpQlV36WYhEvQhGtb5fmNUCqxAOg3ka1nyqWyKd6fMvw7iFATkhMCmSPDEBTT+EZSnP25x; 25:4Ntlfe6w2V8BCVpaSnypYE0oOmlOnmD77Tuz8rsHqL4G3ZACWbbBV2l8zOk4r8BXes25Z9bAcoqRpiU0DTuaUiPKmeGMMoI3gwkYFNccRFMb3MlbZCHW5CYLnASgSut8l3SBJL82XoJSHgmRk6F7uW0rMHpWZjOV62uEd+fE1YyAvf+qB8FuBcP1Pg8sEvPeN6uROnQeMGY3U+7ADiJ/zRXGzsk6Rlz/hDNSwcmMbhwlGDAsVTeynKwnbGxKAlbMIR4ek9mAeN6xMHKTB9YAGZArgYgaSjMb2YI5ciSXNpjLhMU5OGsuSx8ARNR1duzEYqGFJWv5NqYCdDYR1VfFdg==; 31:SnhhyMJguQgdhi2948LYrLOjsb71nvEjYE3h0522ouYQWskVMJNugvXdfxOZsDZ24p28x//CFt0nDLVPfk3CN+99ZnBOhEMCsPYzvl+G6wfPi6tXClqq9EBiHCDMFo464MI6ehWg4sHQCUgjvFh0hnOvHqNXsjh8qPQe7uOyit354Wr4KTu6uadH7HFTKvk8zx+6QXJ8M+2pXHZqi1+hX6eg6ouxeN8DhCtRYBVU+kk= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:Lb+MLzV+G9yge+G1CNHlqSI44T4oSdV60SnCf2kFrW1MJG97L8GjBvhKzBT2KmKcZJ9OwPc7DPdFCVwHIc0iqn4Gb7FC1KJuflB0eLKWR7UCFAcLfKQ3zwmiy2ytviReKe6V2RRW7Rjx/v3spUTiDpDc+S4S3AIniO5fr9VJ1Y1/Q7lEdBgM3imMyaqAQLr4xtSl7GpKW22e15RyugIGxmcF47W1ikWrBBcQP4LDfMYRYVUIXqe8RULbIL7VmDg0upD+eNuUhrafxZklzoNirZJdOXIooGuo20NfoCSZmRHWh7ge7NN5WeRppC7bECXctnJXbkLTuZhjV+s6MFUvCAB18RwzD6NN+nHUmWqO373S2Qa0YRmfeSs7aMtOk+l0Jem35y0QJ1ppefC6/5nYqiQWCW/oMxiohJzwqjN0n8I/HsSPstfLcBFU5UuwFEDODVXFGOtJPBO14OOwrGAp7OOkyalecUDjc9Y7ka6JQnYNoFNcniM5Rf1SbQP7Wz2+; 4:ZBfY/tC/Rd8EgrFYsJQQz6eQi5Cg9Se0I5dZxcuyQyJjWS1akK1DKzsRGjdAvZ3xEbLpXDWTA+leTeHf0l8PrG8Ij3/3PF+abiIM3WnyFlEeKJqCGLjuVnb1ZG8CQRPnnbGa/5nfBike3NpR6fttQ3cUu+PHbj/BkIApFARzvbSDNYOhIrTVPgqi+sNfHzyVwdRQt0ZnLjC6B44y1Rr0tacIJ2BHc055nwUYYlsPoCChTPETLutEJoXZaqBjbLW5WEaPCvSjEV2YMfFPhfmJgwZIFVLGGOE60VuCovDi4nArwh76lJteDFEGwwWKz76e X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(575784001)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0755; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0755; 23:F1FO8dRuk0CZKH98AS+uHhsNwA8f6as48CaVpuRkK?= =?us-ascii?Q?kAUEi+qKXpm3C6gX0RuTrdw+//jcIKxbofAYdu6egj9wuYmAzum1EAShjmdV?= =?us-ascii?Q?GdhThVS8nzKu/oVwkJ2Bf1t/jx232YiRx7N1TwWmEnzhNOPvXFOBeMqJ/pas?= =?us-ascii?Q?kdwt4RbhlzXzsAiM22ndh5yLUaii/Fg/AhTdq1fpK8wKt84eeXnfX0bcbcke?= =?us-ascii?Q?jSTIX9c2koH3koJ9wAqnwOkPOu2hwib7p9vY7rkEpNVu7bK4q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LiT9aA6nav3ecudVoOGejbw2TQ==; 5:VULUKqyWmlT86/x/SgsNJ7EgUoOsEdLG6FCbLSHatYLMQUs6ZQ1GeycIiicn6Qq/Q/rSwb/bJcMGUL9e3rT1ktxnUg6Yfatq0cTwkkq8Wj68zgT02rfyMwLPq4jpTuk7M0qoUSNBJfSsarjZu96uRtJ41pB1KEITCY0DL4D3pVI=; 24:Vyol+05OEfRycxOC6EuJQAXghSMSanMEG8+i040WR4z0AkKh6pSaVDbElpcqjujJrVLQdjangeqm8Z+xV1AoN9c5zeAuq1sFTP4wP2Wu7yw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:w0FpGpXdweb7xO7DbrnNLFNa/VYg7u6D06umhNCqUCX0bLxUeqppZLyBHSoohd1DXw2vFNAzLti4F0g8eQ7qTApvTjZ3YF4O+wNoyIROsV/iJYhzTSgXm/X3qWuzX7ug7v1oQw7zkqgu469FbSVx4XjnDlMrv00vA9Thg1CN8VLNYGkTVSbEoCc2LdvFpnPYNLdokWZGZGXpg2/2DSLBtCradQ2HVXqv3uKB2jPMm1Wq0k5+NKp8megfsmr83TLh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:51.7197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88ff4e91-fa94-4907-c484-08d5d75bc724 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0755 Subject: [dpdk-dev] [PATCH 10/10] bus/fslmc: cleanup unnecessary global variables X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2018 09:45:54 -0000 Changes originally in the patch "drivers: cleanup unnecessary global variables" by Pavan. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c | 3 +-- drivers/bus/fslmc/qbman/qbman_portal.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index 713ec96..0714500 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -122,8 +122,7 @@ struct qbman_swp *qbman_swp_init(const struct qbman_swp_desc *d) p->vdq.valid_bit = QB_VALID_BIT; p->dqrr.next_idx = 0; p->dqrr.valid_bit = QB_VALID_BIT; - qman_version = p->desc.qman_version; - if ((qman_version & 0xFFFF0000) < QMAN_REV_4100) { + if ((p->desc.qman_version & 0xFFFF0000) < QMAN_REV_4100) { p->dqrr.dqrr_size = 4; p->dqrr.reset_bug = 1; } else { diff --git a/drivers/bus/fslmc/qbman/qbman_portal.h b/drivers/bus/fslmc/qbman/qbman_portal.h index 8bff0b4..dbea22a 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.h +++ b/drivers/bus/fslmc/qbman/qbman_portal.h @@ -7,7 +7,6 @@ #include "qbman_sys.h" #include -uint32_t qman_version; #define QMAN_REV_4000 0x04000000 #define QMAN_REV_4100 0x04010000 #define QMAN_REV_4101 0x04010001 -- 2.7.4