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 C37D311712 for ; Mon, 21 Aug 2023 17:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79C66C43391; Mon, 21 Aug 2023 17:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692640677; bh=7HrxsAiRQQGAlgUo8TRfdwOUbQuteDJw+o0x/Cdltrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HaK7EB+oDN3FwXKzJGvCB0qTITyH4TrLldZHLBo7mkG/sjWN+YZRYhTjz5eBNz9/3 CSxLBYteJHFVciFikhkDuyBYBQgHmzdFMV9Btqw8vdcW5SjAmvdtal3cemoJj9hVU7 DXkAXQKnJZQoJMCXQm6FZUtISRlMLfSXyr+TQ1VSyS4RSpqLUScY5FcNQfu4pOV4KR byONPEicVN+xZLM4kVIaR4+wtkEGtw+eozA1k0mDcmzszvEwe++fckW2/MbSfdDavl aBPQyC0cI5YgpKJRq6E3eE3rEPdocGClz/FjcL4v8iObwp/wWNN2XlvAratixPFGH4 F3xefXUB6RkFw== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Yevgeny Kliteynik Subject: [net-next V2 07/14] net/mlx5: DR, Remove unneeded local variable Date: Mon, 21 Aug 2023 10:57:32 -0700 Message-ID: <20230821175739.81188-8-saeed@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821175739.81188-1-saeed@kernel.org> References: <20230821175739.81188-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Yevgeny Kliteynik Remove local variable that is already defined outside of the scope of this block. Signed-off-by: Yevgeny Kliteynik Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c index 54bb0866ed72..5b83da08692d 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c @@ -1422,7 +1422,6 @@ dr_action_create_reformat_action(struct mlx5dr_domain *dmn, case DR_ACTION_TYP_TNL_L3_TO_L2: { u8 *hw_actions; - int ret; hw_actions = kzalloc(DR_ACTION_CACHE_LINE_SIZE, GFP_KERNEL); if (!hw_actions) -- 2.41.0