net/mlx5: remove unnecessary structure initializers
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Tue, 23 Oct 2018 10:04:15 +0000 (10:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
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>
drivers/net/mlx5/mlx5_flow_tcf.c

index 05ffbd3..dca9f71 100644 (file)
@@ -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) {