diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-03-21 18:51:34 -0400 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-03-22 15:09:30 -0400 |
commit | bdde9311499491fb75fd1880e4789cf7e60cd691 (patch) | |
tree | 6e94608d584789b1b9b18feede35c89536f9b2d8 | |
parent | ee576ec1c1c66ec1cd0c4735bb12bc08f675f530 (diff) |
net/mlx5e: Remove redundant assignment
Remove redundant assignment to tun_entropy->enabled.
Addesses-Coverity-ID: 1477328 ("Unused value")
Fixes: 97417f6182f8 ("net/mlx5e: Fix GRE key by controlling port tunnel entropy calculation")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c index 40f4a19b1ce1..be69c1d7941a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c | |||
@@ -80,10 +80,8 @@ void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy, | |||
80 | mlx5_query_port_tun_entropy(mdev, &entropy_flags); | 80 | mlx5_query_port_tun_entropy(mdev, &entropy_flags); |
81 | tun_entropy->num_enabling_entries = 0; | 81 | tun_entropy->num_enabling_entries = 0; |
82 | tun_entropy->num_disabling_entries = 0; | 82 | tun_entropy->num_disabling_entries = 0; |
83 | tun_entropy->enabled = entropy_flags.calc_enabled; | 83 | tun_entropy->enabled = entropy_flags.calc_supported ? |
84 | tun_entropy->enabled = | 84 | entropy_flags.calc_enabled : true; |
85 | (entropy_flags.calc_supported) ? | ||
86 | entropy_flags.calc_enabled : true; | ||
87 | } | 85 | } |
88 | 86 | ||
89 | static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy, | 87 | static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy, |