summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>2018-10-23 10:04:15 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-26 22:14:06 +0200
commite00767ee04c179f452840a9801af466b10257194 (patch)
treeaa2c73b7be4c07189c40a098ac6885f4f6f2f725 /drivers
parent3b2c0bbc52e5a06de8f896cd379ce252602d9560 (diff)
downloaddpdk-e00767ee04c179f452840a9801af466b10257194.zip
dpdk-e00767ee04c179f452840a9801af466b10257194.tar.gz
dpdk-e00767ee04c179f452840a9801af466b10257194.tar.xz
net/mlx5: remove unnecessary structure initializers
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@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/mlx5/mlx5_flow_tcf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/mlx5/mlx5_flow_tcf.c b/drivers/net/mlx5/mlx5_flow_tcf.c
index 05ffbd3..dca9f71 100644
--- a/drivers/net/mlx5/mlx5_flow_tcf.c
+++ b/drivers/net/mlx5/mlx5_flow_tcf.c
@@ -399,11 +399,6 @@ flow_tcf_counter_new(void)
*/
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) {