Commit 694a2960 authored by Colin Ian King's avatar Colin Ian King Committed by Saeed Mahameed

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: 6cedde45 ("net/mlx5: E-Switch, Verify support QoS element type")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 7084ed30
...@@ -1413,7 +1413,7 @@ static int esw_vport_egress_config(struct mlx5_eswitch *esw, ...@@ -1413,7 +1413,7 @@ static int esw_vport_egress_config(struct mlx5_eswitch *esw,
static bool element_type_supported(struct mlx5_eswitch *esw, int type) static bool element_type_supported(struct mlx5_eswitch *esw, int type)
{ {
struct mlx5_core_dev *dev = esw->dev = esw->dev; const struct mlx5_core_dev *dev = esw->dev;
switch (type) { switch (type) {
case SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR: case SCHEDULING_CONTEXT_ELEMENT_TYPE_TSAR:
......
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