From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-eopbgr790072.outbound.protection.outlook.com [40.107.79.72]) by dpdk.org (Postfix) with ESMTP id 4DC854C9D for ; Tue, 12 Mar 2019 16:24:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=AQUANTIA1COM.onmicrosoft.com; s=selector1-aquantia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rC7XPbHCe0FPJicFWuUJe/OPxSvcdQsGFAmt3EPuQBY=; b=uAEexBZpHumroTrxlBi9EauYLg7Sjxdc7nt7P7MwT2ursV/f4NmLrUz/YoE4S5ABIr1INTST5JO3/+ruS8kMKHV/KdDKmnPAS/Xp6jkX8HvZH/+ijr3yV+4PjQ0LVxPbYiciCd+9RJ72JZNdw6g/AqQkqvaDtDEgVuUEbQ1DFrs= Received: from DM6PR11MB3625.namprd11.prod.outlook.com (20.178.230.149) by DM6PR11MB2747.namprd11.prod.outlook.com (20.176.100.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Tue, 12 Mar 2019 15:24:53 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::d145:a1f4:ed34:e31b]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::d145:a1f4:ed34:e31b%3]) with mapi id 15.20.1686.021; Tue, 12 Mar 2019 15:24:53 +0000 From: Igor Russkikh To: "dev@dpdk.org" CC: Pavel Belous , Igor Russkikh Thread-Topic: [PATCH v3 02/10] net/atlantic: remove unused variable Thread-Index: AQHU2Oe9qiVL8Bt5iUiTo0+F69BLXQ== Date: Tue, 12 Mar 2019 15:24:53 +0000 Message-ID: <7be2f22e182554be25d661e97e61ea36b87c2aec.1552402263.git.igor.russkikh@aquantia.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0901CA0050.eurprd09.prod.outlook.com (2603:10a6:3:45::18) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Igor.Russkikh@aquantia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [95.79.108.179] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 51f07df5-d495-4f92-19ad-08d6a6fee04c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:DM6PR11MB2747; x-ms-traffictypediagnostic: DM6PR11MB2747: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DM6PR11MB2747; 23:LWNSGLcRavCP7O/1yAQeBy75WCZWj+fz8lwToms?= =?iso-8859-1?Q?8yvEZ0pVSA7xuGI5Nri+tt04EDBe8863gpT4DwocEE0v6sB+HooAEclEaS?= =?iso-8859-1?Q?1TO5pQohCqeL0BMGKrCOAgIv5PXR3ZLjrU23EsprHVvH9yunmQiuBFzkKS?= =?iso-8859-1?Q?6E22Jjx1pMOu05lcKHVmBXYfBLfGJlzbW02JWzSeSC6C8kuzYws6kWNfiA?= =?iso-8859-1?Q?5RD7j0sqLBhyLG83Wa/Uq4EGUKGup2BznaYCfl92tBN6ECrKOlxqoFzwY6?= =?iso-8859-1?Q?eM1breHVMTiEsT6Fvwn4gjGHD3Gm/zsvdiggqMCMjjcEsxjNsgbFzJjAbn?= =?iso-8859-1?Q?6XITnTPx/IOe9Dq1qVE+t31KFa1vxCKBK30TXPkSo6Fn6NEkmh7bbNzRET?= =?iso-8859-1?Q?57oeFuakDK52+Spy2Ybj5ybwPLOKGITBMxSekC3+PsuIx9rnej+53BKwHL?= =?iso-8859-1?Q?WF+w4Jq7AbOWq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eDjbf?= =?iso-8859-1?Q?HjgohDuX4h1FjKD+GoU+GclnzmLyraVFn2UcAKvOSZnH7iF5oIg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39850400004)(136003)(366004)(376002)(199004)(189003)(53936002)(2501003)(106356001)(86362001)(81166006)(5660300002)(99286004)(81156014)(6116002)(44832011)(2351001)(105586002)(4326008)(66066001)(2616005)(71200400001)(486006)(72206003)(478600001)(446003)(476003)(186003)(118296001)(14454004)(26005)(54906003)(71190400001)(11346002)(386003)(6506007)(305945005)(102836004)(25786009)(7736002)(50226002)(3846002)(256004)(107886003)(316002)(36756003)(6916009)(6486002)(52116002)(1730700003)(8676002)(76176011)(6512007)(97736004)(8936002)(68736007)(6436002)(2906002)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR11MB2747; H:DM6PR11MB3625.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: aquantia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hcfDRn4bBTKfLh8eHVQ8XBQ04Op8AhOVpUI62E+MdU9UZVbusLUfgG/Wp1OnFffTtlwDxgWlGXWpbKsODEgHpW9j5mhGSPq5ntbQnsHx/1PNDMRpOfJlXSITCj2u+HZ90WhYD70QoQebNdDrSAYu6Q3ktwntSR6cDVNPJvjUxSNRFlT5KR9A8f+rYc8biSG3PtWf6d8HGY4GcQXtMnZHx5VCMRPbqLWYc/7YwkrKaklhz2sU0X+OMS0fDt3tGbeGKS66ByIEniku62+I7PzPNCPAfK2Be+lFty7F2oZpvsLtkpAIviYBqXLm0Rb8Ih3J/r5Sgz244wwKixmpYfJA8E/I8749UgunlN7+bbpC+YYG1F5YLA8rSL8PFHBzw7puf0oLUwmNUSrST9I/QbUm8txjp7rSlGHtblt9oJqL+pY= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aquantia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51f07df5-d495-4f92-19ad-08d6a6fee04c X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 15:24:53.7403 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 83e2e134-991c-4ede-8ced-34d47e38e6b1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2747 Subject: [dpdk-dev] [PATCH v3 02/10] net/atlantic: remove unused variable 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: Tue, 12 Mar 2019 15:24:56 -0000 Found by coverity scan. Fixes: 7906661edac6 ("net/atlantic: add b0 hardware layer") Coverity issue: 323512 Signed-off-by: Igor Russkikh --- drivers/net/atlantic/hw_atl/hw_atl_b0.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/atlantic/hw_atl/hw_atl_b0.c b/drivers/net/atlantic= /hw_atl/hw_atl_b0.c index 9400e0edb999..53fd8e9f0237 100644 --- a/drivers/net/atlantic/hw_atl/hw_atl_b0.c +++ b/drivers/net/atlantic/hw_atl/hw_atl_b0.c @@ -31,7 +31,6 @@ static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) u32 tc =3D 0U; u32 buff_size =3D 0U; unsigned int i_priority =3D 0U; - bool is_rx_flow_control =3D false; =20 /* TPS Descriptor rate init */ hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U); @@ -64,7 +63,6 @@ static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) =20 /* QoS Rx buf size per TC */ tc =3D 0; - is_rx_flow_control =3D 0; buff_size =3D HW_ATL_B0_RXBUF_MAX; =20 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, buff_size, tc); @@ -76,9 +74,7 @@ static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) (buff_size * (1024U / 32U) * 50U) / 100U, tc); - hw_atl_rpb_rx_xoff_en_per_tc_set(self, - is_rx_flow_control ? 1U : 0U, - tc); + hw_atl_rpb_rx_xoff_en_per_tc_set(self, 0U, tc); =20 /* QoS 802.1p priority -> TC mapping */ for (i_priority =3D 8U; i_priority--;) --=20 2.17.1