From 4bcc5ccfe64928f721326e2e3f59b3dbf891bc0b Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Wed, 29 Apr 2020 21:11:51 -0700 Subject: [PATCH] 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 --- 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 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++) { -- 2.20.1