Revert "net/mlx5e: Add a check for the return value from mlx5_port_set_eth_ptys"

This reverts commit babb23917f.
This commit is contained in:
Ksawlii 2024-11-24 00:23:55 +01:00
parent 91e81d11cd
commit eb36756b64

View file

@ -1155,12 +1155,7 @@ int mlx5e_ethtool_set_link_ksettings(struct mlx5e_priv *priv,
if (!an_changes && link_modes == eproto.admin) if (!an_changes && link_modes == eproto.admin)
goto out; goto out;
err = mlx5_port_set_eth_ptys(mdev, an_disable, link_modes, ext); mlx5_port_set_eth_ptys(mdev, an_disable, link_modes, ext);
if (err) {
netdev_err(priv->netdev, "%s: failed to set ptys reg: %d\n", __func__, err);
goto out;
}
mlx5_toggle_port_link(mdev); mlx5_toggle_port_link(mdev);
out: out: