]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net/mlx5: E-Switch, Fix double mutex initialization
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 27 Feb 2019 14:10:16 +0000 (16:10 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:32 +0000 (14:10 -0700)
Delete mutex_init call of a lock that's initialized in inner function.

Fixes: eca8cc389535 ("net/mlx5: E-Switch, Refactor offloads flow steering init/cleanup")
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

index 6c72f33f6d09ea6c589ba51b16e1cae3707ea482..d684048551bd4271a778498b9880321a91cac832 100644 (file)
@@ -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;