From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <andy@warmcat.com> Received: from mail.warmcat.com (mail.warmcat.com [163.172.24.82]) by dpdk.org (Postfix) with ESMTP id 1E1EA1CC71 for <dev@dpdk.org>; Sat, 12 May 2018 03:51:26 +0200 (CEST) From: Andy Green <andy@warmcat.com> To: dev@dpdk.org Date: Sat, 12 May 2018 09:51:21 +0800 Message-ID: <152608988186.121480.2581304798243002629.stgit@localhost.localdomain> In-Reply-To: <152608979178.121480.7311972440076541560.stgit@localhost.localdomain> References: <152608979178.121480.7311972440076541560.stgit@localhost.localdomain> User-Agent: StGit/unknown-version Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] [PATCH v2 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 <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> X-List-Received-Date: Sat, 12 May 2018 01:51:26 -0000 Signed-off-by: Andy Green <andy@warmcat.com> Fixes: ccdcba53a3f4 ("net/mlx5: use Netlink to add/remove MAC addresses") Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> --- drivers/net/mlx5/mlx5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_unused, int err = 0; struct ibv_context *attr_ctx = NULL; struct ibv_device_attr_ex device_attr; - unsigned int vf; + unsigned int vf = 0; unsigned int mps; unsigned int cqe_comp; unsigned int tunnel_en = 0;