From nobody Sat Apr 09 00:27:46 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3D0381AAB9AF; Sat, 9 Apr 2022 00:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZwtp5LdWz3nx3; Sat, 9 Apr 2022 00:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3U0zRurkmD74H2VRdmxto8yUOYucD9VovtyMaKgs660=; b=H/+31vTXawoRmw1eTGQBjbBK7vYO9t/MwWWqCjea+XLzXajemWbH149OBKKxBk3xKRNsuC M/siRXA8Eg4mwOSmzsaYAnVaOBzYwDy+BmO1w7LqdQynOOhPy1KvnRsG9ZKOu/FIyHb5tb UiLRAx7WHxk1C7BEhHDXJJ+4lpxtdBffUNLc4is1cdZJIRSkJssqJB5ZfphQ0f2RqzCmt+ I8NCv5KVxE2bhLYVG6sSI/E36F7CoydORFaYw579XLQpcijcnQIUsVml0bc1y673AuoxdQ Pu5xlRgJIMYz9wyqpkMW0l5OuwPe5U7CVs6hzeWwOwn4HtqCQmF+qbD8JpbC2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5F3C176BD; Sat, 9 Apr 2022 00:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2390Rk7L056428; Sat, 9 Apr 2022 00:27:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390RkuO056427; Sat, 9 Apr 2022 00:27:46 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:27:46 GMT Message-Id: <202204090027.2390RkuO056427@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 834533b9c50e - main - mlx5: Remove unused variables. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 834533b9c50e5943bd34801677bdb0fe52619ad5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3U0zRurkmD74H2VRdmxto8yUOYucD9VovtyMaKgs660=; b=oR+FNawlAJUYaF/tz5nCZ7DZOAkBDJsDjNfrkLEbTc+0YlX7fN8Agg60QHniMYGacvpDEe Pzukf92I3SV/aUMO0MulX1F8Li2T/3YHYtoSYqADjrGyEBm0RVW3tmcdWMki5M/6IiMONE sKu/zHS2VfKnFoqzOCeGcHvF5hclhHjJU9vLvTUoTRdoTPzSx6i8QzqnUkrOc/ZkihL4tD JtPCy+Sc++f8lrHo0R9KZtnr6WKn2KWMD1oS8hDBBBdPxDN0dzO/xk6lPCYqe34aFrszK4 nxpwX0z/RTEvCfZVX/1ctxpCF1P8ljG7t/uvnkYD92rmV4FNd7/hqepMwLZJeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464067; a=rsa-sha256; cv=none; b=a8XoNq47nZnhiN+xerc2oQp8iLYFu/MajOjevLFN1/42EhXDIHEM0Nl/I6J/lxd4U9rKgq CpUjSmg553i/TeOuENijfEdQfxcWeHHVLsW1hbRzxGUW3qnvthrxyiVpE3qd1pb+8keJ3H i0Gu0A79kmSccD/k9QY4jBXk+U4ePNSfw6oPQKg+R1/Fe/wSilj/InA8wKtlroGb2/zxhB RMMnvC91PQ0WYhAifh7sUD8znMZ7Io9rm3MTtRLw0VDt1UNr3910G3yiNdZF/9xNk1hoIZ 2vfzQqYdhFqQlunlva26YN859PG5+I9KVmYfq1N6t94wXGBfISeagQqP96F1mA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=834533b9c50e5943bd34801677bdb0fe52619ad5 commit 834533b9c50e5943bd34801677bdb0fe52619ad5 Author: John Baldwin AuthorDate: 2022-04-09 00:25:13 +0000 Commit: John Baldwin CommitDate: 2022-04-09 00:25:13 +0000 mlx5: Remove unused variables. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34827 --- sys/dev/mlx5/mlx5_core/mlx5_eq.c | 5 ----- sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c | 9 --------- 2 files changed, 14 deletions(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_eq.c b/sys/dev/mlx5/mlx5_core/mlx5_eq.c index d51e97cd3e90..22b170179005 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_eq.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_eq.c @@ -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); diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c index 8377ba388e6d..7d4b446d23d1 100644 --- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c +++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c @@ -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;