From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBAF12590 for ; Sun, 22 Jan 2023 15:21:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F950C433EF; Sun, 22 Jan 2023 15:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674400901; bh=YF6YY0iHFdfr/hG0roWqPe4eYWlqhRj8kIVzdzc4Ql0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rB4rrGnX54PYEgrHTwr/EAzMaMpJJuAo7KFwJJjyIWYdrdQUTAFGrou6WxdXkCLk8 iw+HADjj33dFL+Z8OFGiQodyLIMFI4GHeHFHuJG6XZyGmvFaK7+3mcs8Lz+ABKBOsL CwLUNayChpKpYPlCda1a5ab1g4knJI1n8WeAUQY4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Anuradha Weeraman , "David S. Miller" , Sasha Levin Subject: [PATCH 6.1 006/193] net: ethernet: marvell: octeontx2: Fix uninitialized variable warning Date: Sun, 22 Jan 2023 16:02:15 +0100 Message-Id: <20230122150246.658257530@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230122150246.321043584@linuxfoundation.org> References: <20230122150246.321043584@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anuradha Weeraman [ Upstream commit d3805695fe1e7383517903715cefc9bbdcffdc90 ] Fix for uninitialized variable warning. Addresses-Coverity: ("Uninitialized scalar variable") Signed-off-by: Anuradha Weeraman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c b/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c index fa8029a94068..eb25e458266c 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c @@ -589,7 +589,7 @@ int rvu_mbox_handler_mcs_free_resources(struct rvu *rvu, u16 pcifunc = req->hdr.pcifunc; struct mcs_rsrc_map *map; struct mcs *mcs; - int rc; + int rc = 0; if (req->mcs_id >= rvu->mcs_blk_cnt) return MCS_AF_ERR_INVALID_MCSID; -- 2.35.1