1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Fix LINT compilation issue.

"mdev" is unused when building LINT targets.

MFC after:	3 days
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-05-08 12:27:16 +00:00
parent cf59f7e108
commit dfea1c3e32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347326

View File

@ -1141,7 +1141,6 @@ mlx5e_create_diagnostics(struct mlx5e_priv *priv)
void
mlx5e_create_ethtool(struct mlx5e_priv *priv)
{
struct mlx5_core_dev *mdev = priv->mdev;
struct sysctl_oid *node, *qos_node;
const char *pnameunit;
unsigned x;
@ -1289,7 +1288,7 @@ mlx5e_create_ethtool(struct mlx5e_priv *priv)
SYSCTL_ADD_PROC(&priv->sysctl_ctx, SYSCTL_CHILDREN(qos_node),
OID_AUTO, "trust_state", CTLTYPE_U8 | CTLFLAG_RWTUN | CTLFLAG_MPSAFE,
priv, 0, mlx5e_trust_state_handler, "CU",
MLX5_CAP_QCAM_FEATURE(mdev, qpts_trust_both) ?
MLX5_CAP_QCAM_FEATURE(priv->mdev, qpts_trust_both) ?
A B : A);
#undef B
#undef A