[dpdk-dev] [PATCH v4 7/8] net/mlx5: remove unnecessary structure initializers

Slava Ovsiienko viacheslavo at mellanox.com
Tue Oct 23 12:04:15 CEST 2018


The unnecessary structure filed initializers to zero are removed.
We need to do this minor preparation before the following
mlx5 counter structure modification.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
---
 drivers/net/mlx5/mlx5_flow_tcf.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/mlx5/mlx5_flow_tcf.c b/drivers/net/mlx5/mlx5_flow_tcf.c
index a0680af..4076400 100644
--- a/drivers/net/mlx5/mlx5_flow_tcf.c
+++ b/drivers/net/mlx5/mlx5_flow_tcf.c
@@ -399,11 +399,6 @@ struct pedit_parser {
 	 */
 	struct mlx5_flow_counter tmpl = {
 		.ref_cnt = 1,
-		.shared = 0,
-		.id = 0,
-		.cs = NULL,
-		.hits = 0,
-		.bytes = 0,
 	};
 	cnt = rte_calloc(__func__, 1, sizeof(*cnt), 0);
 	if (!cnt) {
-- 
1.8.3.1



More information about the dev mailing list