Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eda99e11 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Saeed Mahameed
Browse files

net/mlx5: E-Switch, Fix double mutex initialization



Delete mutex_init call of a lock that's initialized in inner function.

Fixes: eca8cc38 ("net/mlx5: E-Switch, Refactor offloads flow steering init/cleanup")
Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 5d3c537f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1697,8 +1697,6 @@ int esw_offloads_init(struct mlx5_eswitch *esw, int vf_nvports,
{
	int err;

	mutex_init(&esw->fdb_table.offloads.fdb_prio_lock);

	err = esw_offloads_steering_init(esw, total_nvports);
	if (err)
		return err;