mlx5: Remove unused variables.

Reviewed by:	hselasky
Differential Revision:	https://reviews.freebsd.org/D34827
This commit is contained in:
John Baldwin 2022-04-08 17:25:13 -07:00
parent 6d018c93ea
commit 834533b9c5
2 changed files with 0 additions and 14 deletions

View File

@ -739,14 +739,9 @@ static void mlx5_port_general_notification_event(struct mlx5_core_dev *dev,
struct mlx5_eqe *eqe)
{
u8 port = (eqe->data.port.port >> 4) & 0xf;
u32 rqn;
struct mlx5_eqe_general_notification_event *general_event;
switch (eqe->sub_type) {
case MLX5_GEN_EVENT_SUBTYPE_DELAY_DROP_TIMEOUT:
general_event = &eqe->data.general_notifications;
rqn = be32_to_cpu(general_event->rq_user_index_delay_drop) &
0xffffff;
break;
case MLX5_GEN_EVENT_SUBTYPE_PCI_POWER_CHANGE_EVENT:
mlx5_trigger_health_watchdog(dev);

View File

@ -2727,7 +2727,6 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,
struct mlx5_ib_port *mibport = NULL;
enum mlx5_qp_state mlx5_cur, mlx5_new;
enum mlx5_qp_optpar optpar;
int sqd_event;
int mlx5_st;
int err;
u16 op;
@ -2863,12 +2862,6 @@ static int __mlx5_ib_modify_qp(struct ib_qp *ibqp,
if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
context->db_rec_addr = cpu_to_be64(qp->db.dma);
if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY && attr->en_sqd_async_notify)
sqd_event = 1;
else
sqd_event = 0;
if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
u8 port_num = (attr_mask & IB_QP_PORT ? attr->port_num :
qp->port) - 1;
@ -3919,7 +3912,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
unsigned long flags;
unsigned idx;
int err = 0;
int inl = 0;
int num_sge;
void *seg;
int nreq;
@ -4162,7 +4154,6 @@ int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
*bad_wr = wr;
goto out;
}
inl = 1;
size += sz;
} else {
dpseg = seg;