]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5: remove self-assignment on esw->dev
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Aug 2019 15:13:16 +0000 (16:13 +0100)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 6 Aug 2019 21:00:04 +0000 (14:00 -0700)
commit694a296024d4cd5e637fa679c4c7e4c63a7c24f3
tree332730fc86700b264b878a7bdf810ef03e70e540
parent7084ed30ae2aba4efb4d3ef72c0e7042644e7637
net/mlx5: remove self-assignment on esw->dev

There is a self assignment of esw->dev to itself, clean this up by
removing it. Also make dev a const pointer.

Addresses-Coverity: ("Self assignment")
Fixes: 6cedde451399 ("net/mlx5: E-Switch, Verify support QoS element type")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c