From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00087.outbound.protection.outlook.com [40.107.0.87]) by dpdk.org (Postfix) with ESMTP id 42E371C459 for ; Fri, 6 Jul 2018 10:12:14 +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=L/jJtob5CXKogEzC/QC9JU2jwIEySO4TkMfwNGY7mk0=; b=T2ZftC2guvoX5jJ03ig/QvtSfsER3TAPii4ztznI9PzeRrlEz1EYWE4FLTdao9cb/pP4WnlFycBxwtZdAbURjMChXhyinMtbdF6mTzgz2aoS2RdyHO0TBo23TG4TVmTsrT+lA6bxdvUAcnkpCWx2hTdMgsNvQVlGA/h8ytKZLII= 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.906.23; Fri, 6 Jul 2018 08:12:10 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, Pavan Nikhilesh Date: Fri, 6 Jul 2018 13:40:09 +0530 Message-Id: <1530864613-11754-12-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530864613-11754-1-git-send-email-hemant.agrawal@nxp.com> References: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> <1530864613-11754-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: PN1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::16) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f3d33ab-cb34-4d58-deef-08d5e3182c9e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:ji4sFflUpjNTB9nysHOR0LJrLEkd7fy29e1/Hyb0szIBYbJrGjRJhyUsFhnUpeDCkxuFK53DoXZbiRSkRF8E+VO9GhvyriUgegdH4lCkQraO5+d0OLQ8xPDooePNnykHwJyAEp1B6Xw94p6FOt54DT58+8Ieln9zAu+Mtyr2GywaNr6zviZTQgwVo/nqGA81trtSvBnsOZUMEOXyF56+HF0hgnLFaTd5RRVNS2Lwhvd1MAJuTmeJqPaG18zz+ohG; 25:E/AJ+x69EL7aUeVwJKWFk5SBcSUEUAmTcIOTMvH0PqxTG8XWFzjvxU4c7RqJbp65iDm7VkVhID4tdxxs0EbJlDY5x7pU3seVaZN4tRGr4oJ9gp2KY7QAgf3tqE6EvWXMkDp1I85rMTCvr1IFNap/iHM5EILF7EbUDDykcHxhDRy04SYxVinb6j44TIjKo+0yNj+5wSKz+ZANiE+aaYmlsxlK7yknjolh9na7MPHQzd8as4B9UAWT3qKV2P2AJI/ELfkokxnSd73grk818fWfBLkWCYvKOnOuMBo/qe0tFjARWvr3wbtTnHD+XHl3RZ5tgP/Ug+oy9eHCGqBLowFEfQ==; 31:W1Dzs7ZagiaB8BiqsUbr6khCCZ3sNx/py6+2dzZY+Kj3Yx0qp7ez56ZVmoX/Q5MnNhGh+x6PYjGALTQBAYfoKdCrrug4HKjbnZdsfYqe/WTiMliBDIv7A1baM3oQUZRhVMTHQr+jzCDRuNk97kKoJs077Wc+S/eihSc/x3jmJgO9/ukCgorrw6uWP6I9NWIlJEpCd3fXgxtWBc/H5S+hL7crFxyaJQHotdM+eZHdlT8= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:DHhqbbcEw3QJhVC8QrERT8lNQGFu+bxGNrQSVb++10OKkGR6txrMyimaVCDexHpRIeoieKQA+i0Rs9oI72qV3iEv5U5xnDgbaUGHnZin7kGfSZsf4ZvH2Qy8T8nQtegtKvZjl4H8EFpsPNF19TSLZKT5wi4zbZRmokJAJVg2xGWM2qm/dXmDJWr6KEkc9Au16sbV5Izhv/++rdU2MwGW/84B+zl89ULPjqAFf3mZZL5mpbDOw4yYKcPBFXnWe+ZC26GEVMB9YurkgJdMsgnlqsq8vC7fuWefO4HylXrbTTvCgXSE6N0l2mQ1N+wa4NC9Z8Q1VVovOpjjNK2xHfL22dpktJUs8lBlY5EwJnLeJS6J+LiFP+O9hMHBJP58eF5Mhv7bvintr62xaXXzPVNUn8dLANiJcFGLoeDT+6t+85kZGbQHKfp3VsbiVX7HY/yLApISyH1a7Rwn2heaFxVRQDCVktG6F+LunK1UzuN7chaXaWcQDfXtUjqvawVrE4+c; 4:bh4tOy5Y2oYrWiWAZv7w2b+m+1GT8r4LjY5uwzwFwPcZPQfzBUcXnIJM4gIEVUrmDFgHxEBZvMqemvHuv2jDHSYSniRXvd8vx9XnPWnnSrqKQ4j8lDFmR0yTdi/q+uTdOWY0dAvisUdD26lXSNVpWCUv1QtjpnWi8z7FvtUJX12uJIghlTm98NMssiAUTDLa4Axi4x+KJOtAhaLZE8HYN023b/tYAkX9krpdfgphtcotSLAXfVsQQ7Oj/T+7URxgbgeZ6PDoOfusuU730Z8fse3mR3osTcw9sjSwVu7BUOmEbOy6dMZp8Znn38XHFFuI 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)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(956004)(66066001)(446003)(6116002)(2616005)(476003)(5009440100003)(6916009)(76176011)(186003)(16586007)(16526019)(575784001)(105586002)(478600001)(86362001)(44832011)(106356001)(3846002)(4326008)(486006)(11346002)(6486002)(2906002)(25786009)(305945005)(47776003)(50466002)(2361001)(7736002)(5660300001)(6512007)(48376002)(8936002)(68736007)(36756003)(97736004)(55236004)(6506007)(53936002)(26005)(51416003)(50226002)(8676002)(2351001)(81156014)(81166006)(386003)(52116002)(316002)(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:9MokAPLxBcKIDmRwF+dJIhAuvTi61xsDBjauAKjiU?= =?us-ascii?Q?Qycp25oOJgpOnBbPXmmHKss9nv/O/HojlvRj7P6m0JAtb4l7E0/JiIbbyr9R?= =?us-ascii?Q?hh22u+sdyntt6lzZV0B9zP+z1Tt0QBnbSTIOSQdjehONQxKcNJDQ17YeMUTH?= =?us-ascii?Q?qukYJ70K5uuTkRX+s8FZ1f0ajcgg7nAIabOU0l0eVx+sky6GRipXLIluK6eu?= =?us-ascii?Q?qI3jVMNkiieSn7rVBjw4y0iJ+fUJoM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4yHsB0MeJdnj8agCyFWkXYEWlZDsxiIZpip7XyOCx4kCCdaMlaPitmdb5MnJTVXW3ckO6EpdXV3rGXw==; 5:dvyW53Ur/EtbTUtWxhpMpTkbNKTAPk6Q4F+Ijy/0BFnmbUiARL/nF/QaHH0tJHIbvc+8rxdipo1bj0mMvbRtkLo95UH4rJESyjmVYDl8e+SMvGJTvknpknxAoDxisOq5M6SbRy8+wF4duz8tmixeQXQRTjCRTX5jjYakF/W5jk0=; 24:3d7iidTmh/lrRvsTJWUi+lxJ1mWLrFYax+4foKU2EmpkDeMX5WcLEarwZzkuLIzJM7jG8V27hK9s5zzbdLR8URfFzjlKqD5f4g/THoBS8xE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:JBG30QEb8vu4qX/i2YS0Lb+XvARm86yDuaS+RJINGdpYHy1bJu9/JNhiB2Aq+xXiS+h7dKFpC63rRUCL60pHi6+EX1HI7yhUWyvY+VCeW3+bcogXl2nwSyg1hJdbf+5uFirZj4dxZT6d2NLB7Qhg54ADnqzYUIX5c+OvstAiVJQRpXsejVEOzwRNcWyfn10Ntl2I2UjBuvcynJNaATWF2Zr2zMdZcmTX9ST2JXfaj4OKOo+e7J+sm3tWq3r9WQp9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 08:12:10.1336 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f3d33ab-cb34-4d58-deef-08d5e3182c9e 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 v3 12/16] 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: Fri, 06 Jul 2018 08:12:14 -0000 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