net/mlx5e: remove unnecessary memset
authorZhu Yanjun <yanjunz@nvidia.com>
Tue, 1 Dec 2020 22:42:03 +0000 (14:42 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 8 Dec 2020 19:28:47 +0000 (11:28 -0800)
Since kvzalloc will initialize the allocated memory, it is not
necessary to initialize it once again.

Fixes: 11b717d61526 ("net/mlx5: E-Switch, Get reg_c0 value on CQE")
Signed-off-by: Zhu Yanjun <yanjunz@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

index c9c2962..f68a4af 100644 (file)
@@ -1680,7 +1680,6 @@ static int esw_create_restore_table(struct mlx5_eswitch *esw)
                goto out_free;
        }
 
-       memset(flow_group_in, 0, inlen);
        match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in,
                                      match_criteria);
        misc = MLX5_ADDR_OF(fte_match_param, match_criteria,