Commit bdde9311 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Saeed Mahameed

net/mlx5e: Remove redundant assignment

Remove redundant assignment to tun_entropy->enabled.

Addesses-Coverity-ID: 1477328 ("Unused value")
Fixes: 97417f61 ("net/mlx5e: Fix GRE key by controlling port tunnel entropy calculation")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
Reviewed-by: default avatarEli Britstein <elibr@mellanox.com>
Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Acked-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent ee576ec1
...@@ -80,10 +80,8 @@ void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy, ...@@ -80,10 +80,8 @@ void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy,
mlx5_query_port_tun_entropy(mdev, &entropy_flags); mlx5_query_port_tun_entropy(mdev, &entropy_flags);
tun_entropy->num_enabling_entries = 0; tun_entropy->num_enabling_entries = 0;
tun_entropy->num_disabling_entries = 0; tun_entropy->num_disabling_entries = 0;
tun_entropy->enabled = entropy_flags.calc_enabled; tun_entropy->enabled = entropy_flags.calc_supported ?
tun_entropy->enabled = entropy_flags.calc_enabled : true;
(entropy_flags.calc_supported) ?
entropy_flags.calc_enabled : true;
} }
static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy, static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment