From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E30DA00C5; Thu, 7 May 2020 05:12:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B31351DA02; Thu, 7 May 2020 05:11:50 +0200 (CEST) Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id EC6F21D95D for ; Thu, 7 May 2020 05:11:47 +0200 (CEST) Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.242.48]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 0C6A130C061; Wed, 6 May 2020 20:11:14 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 0C6A130C061 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1588821074; bh=aEIcAiaMAlUUwNWA4EJ9DxX0DS2vilmXB415CMuvcL0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vljSksZoD2wCjziU16O9Oc/IcnDk9dReAk+a8c+sAVgWRHFvwQ0bsWLgXyg8bjKZt YLR8EOgJBf/N9ZF7qQUCDZvyzb/E+D3fjI+CGm8/6nTaV8A0WKm84aA+hhelIid/zV 5aNPUv8dR6wOJXcYX37JXCJEMSS5GRJ1LAEBm7S8= Received: from localhost.localdomain (unknown [10.230.26.175]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 4628814008E; Wed, 6 May 2020 20:11:46 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: Somnath Kotur , Randy Schacher Date: Wed, 6 May 2020 20:11:36 -0700 Message-Id: <20200507031136.46035-3-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.21.1 (Apple Git-122.3) In-Reply-To: <20200507031136.46035-1-ajit.khaparde@broadcom.com> References: <20200505191738.58219-1-ajit.khaparde@broadcom.com> <20200507031136.46035-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/2] net/bnxt: fix uninitialized variable error 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix uninitialized variable error reported by coverity. Fixes: d33b68154fa4 ("net/bnxt: add tf_core table scope support") Coverity issue: 357771 Signed-off-by: Ajit Khaparde Reviewed-by: Somnath Kotur Reviewed-by: Randy Schacher --- drivers/net/bnxt/tf_core/tf_tbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_tbl.c b/drivers/net/bnxt/tf_core/tf_tbl.c index 93f387e86..d900c9c09 100644 --- a/drivers/net/bnxt/tf_core/tf_tbl.c +++ b/drivers/net/bnxt/tf_core/tf_tbl.c @@ -539,7 +539,7 @@ tf_em_ctx_reg(struct tf *tfp, { struct tf_em_ctx_mem_info *ctxp = &tbl_scope_cb->em_ctx_info[dir]; struct tf_em_table *tbl; - int rc; + int rc = 0; int i; for (i = KEY0_TABLE; i < MAX_TABLE; i++) { -- 2.21.1 (Apple Git-122.3)