net/mlx5: DR, Remove unneeded local variable
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Tue, 1 Aug 2023 22:03:31 +0000 (01:03 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 21 Aug 2023 17:55:15 +0000 (10:55 -0700)
Remove local variable that is already defined outside of
the scope of this block.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c

index 54bb086..5b83da0 100644 (file)
@@ -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)