* [PATCH 1/1] net/mlx5e: remove unnecessary memset
@ 2020-11-07 3:54 Zhu Yanjun
2020-11-10 6:35 ` Saeed Mahameed
0 siblings, 1 reply; 2+ messages in thread
From: Zhu Yanjun @ 2020-11-07 3:54 UTC (permalink / raw)
To: saeedm, leon, kuba, netdev; +Cc: Zhu Yanjun
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>
---
.../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
index 1bcf260..35c5629 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
@@ -1528,7 +1528,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,
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 1/1] net/mlx5e: remove unnecessary memset
2020-11-07 3:54 [PATCH 1/1] net/mlx5e: remove unnecessary memset Zhu Yanjun
@ 2020-11-10 6:35 ` Saeed Mahameed
0 siblings, 0 replies; 2+ messages in thread
From: Saeed Mahameed @ 2020-11-10 6:35 UTC (permalink / raw)
To: Zhu Yanjun, leon, kuba, netdev
On Sat, 2020-11-07 at 11:54 +0800, Zhu Yanjun wrote:
> 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>
> ---
> .../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git
> a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> index 1bcf260..35c5629 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
> @@ -1528,7 +1528,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,
applied to net-next-mlx5,
Thank you !
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-10 6:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-07 3:54 [PATCH 1/1] net/mlx5e: remove unnecessary memset Zhu Yanjun
2020-11-10 6:35 ` Saeed Mahameed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).