Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Gustavo A. R. Silva and committed by
Saeed Mahameed
bdde9311 ee576ec1

+2 -4
+2 -4
drivers/net/ethernet/mellanox/mlx5/core/lib/port_tun.c
··· 80 80 mlx5_query_port_tun_entropy(mdev, &entropy_flags); 81 81 tun_entropy->num_enabling_entries = 0; 82 82 tun_entropy->num_disabling_entries = 0; 83 - tun_entropy->enabled = entropy_flags.calc_enabled; 84 - tun_entropy->enabled = 85 - (entropy_flags.calc_supported) ? 86 - entropy_flags.calc_enabled : true; 83 + tun_entropy->enabled = entropy_flags.calc_supported ? 84 + entropy_flags.calc_enabled : true; 87 85 } 88 86 89 87 static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy,