From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50049.outbound.protection.outlook.com [40.107.5.49]) by dpdk.org (Postfix) with ESMTP id 312971B7B8 for ; Tue, 15 May 2018 19:25:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+bjYZi7ojqzh5kZI+lKt9yAVC4C8H+D6RbIkBGnHWIE=; b=apo/+1+x2Xvvkw6Rv+F2vjpjrpGkl+x2AEM3NQAwmvMOBmjc5+5/bXJFLESJQMQL0BkT9yGG6HQVjZyYHJpGvwfgbqP8xWMGBTAYe4JQHA9UcZMqySGSAFelgf4EaueaGNXdnu2PO5vnG19GVKP5QJo2DOx9a1+yUwNgrz/Lrk8= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2336.eurprd05.prod.outlook.com (10.169.135.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 15 May 2018 17:25:50 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::11b2:1e2d:709c:695d%13]) with mapi id 15.20.0755.018; Tue, 15 May 2018 17:25:50 +0000 From: Yongseok Koh To: Andy Green CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 3/4] net/mlx5: solve var may be used uninitialized Thread-Index: AQHT60EcX3IjngRaYEecowzPh3Bv+qQxDQaA Date: Tue, 15 May 2018 17:25:50 +0000 Message-ID: <07C5A3AD-755C-41DF-B017-36D59C2AF388@mellanox.com> References: <152627420173.53058.13179290989817984940.stgit@localhost.localdomain> <152627427866.53058.3148404478984097246.stgit@localhost.localdomain> In-Reply-To: <152627427866.53058.3148404478984097246.stgit@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2336; 7:9LsbjYokihoUeWw2Kq0rciSi0wfn99X61RAoKd8Alo8ips4e7MYfyhJoFKhzcXkA+jOub6Fn5WSnepDEC/Ny30VWGGKeyUbOgBwq4nyrsVTBepni+44ePyarKQtCMmmU7KCbddAwmzLO3KkLKjUq9KBNGB6CzcQaTPKf3wjX4KDJQCfqDVRkI+lN8Q4p/BVDG+iwtBM109itCeXXC9SaF2m8kaVfORelsg3/EqWFe3ckzFJC+OJ+jM9mfS0gelAA x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2336; x-ms-traffictypediagnostic: VI1PR0501MB2336: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0501MB2336; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2336; x-forefront-prvs: 0673F5BE31 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39380400002)(39860400002)(396003)(376002)(189003)(199004)(97736004)(2616005)(229853002)(486006)(86362001)(3280700002)(36756003)(476003)(76176011)(6512007)(102836004)(66066001)(6436002)(6916009)(446003)(11346002)(14454004)(2906002)(2900100001)(3660700001)(5250100002)(5660300001)(83716003)(25786009)(6486002)(3846002)(6116002)(53936002)(82746002)(186003)(316002)(105586002)(8936002)(7736002)(6246003)(81156014)(26005)(81166006)(478600001)(53546011)(4326008)(99286004)(33656002)(106356001)(6506007)(59450400001)(305945005)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2336; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: JtJV+EZmAt3z8nRgCKB1c5ycKH4XPXmmp7ts5PRXDqBO2JAnoQLc2mxNsu2WxsZRHRhDeAH2zM2dTV1jAaKVhil5t953gsJcptXfz6TnTRsYNti+KZcLK3mzs6qTjd/JCE+9da80DTxSA83BsFyWkdDCgJQX+9g6a+Ve0A2TcJNrNkSjPscgoYEAF/3qFLuj spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a9bffbaa-87ca-45b7-4239-08d5ba88e746 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9bffbaa-87ca-45b7-4239-08d5ba88e746 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2018 17:25:50.0784 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2336 Subject: Re: [dpdk-dev] [PATCH v3 3/4] net/mlx5: solve var may be used uninitialized 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, 15 May 2018 17:25:51 -0000 > On May 13, 2018, at 10:04 PM, Andy Green wrote: >=20 > Signed-off-by: Andy Green > Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") > Acked-by: Pablo de Lara > --- Acked-by: Yongseok Koh =20 Thanks > drivers/net/mlx5/mlx5.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index 8f983061a..4d379fb13 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -624,7 +624,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_u= nused, > int err =3D 0; > struct ibv_context *attr_ctx =3D NULL; > struct ibv_device_attr_ex device_attr; > - unsigned int vf; > + unsigned int vf =3D 0; > unsigned int mps; > unsigned int cqe_comp; > unsigned int tunnel_en =3D 0;