From: Ajit Khaparde Date: Thu, 30 Apr 2020 04:11:51 +0000 (-0700) Subject: net/bnxt: fix uninitialized variable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4bcc5ccfe64928f721326e2e3f59b3dbf891bc0b;p=dpdk.git net/bnxt: fix uninitialized variable Fix uninitialized variable error reported by coverity. Coverity issue: 357771 Fixes: 69c410b8448d ("net/bnxt: support EM/EEM") Signed-off-by: Ajit Khaparde Reviewed-by: Somnath Kotur Reviewed-by: Randy Schacher --- diff --git a/drivers/net/bnxt/tf_core/tf_tbl.c b/drivers/net/bnxt/tf_core/tf_tbl.c index 93f387e86e..d900c9c09a 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++) {