From nobody Sat Apr 9 00:27:45 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 9393A1AAB7DA; Sat, 9 Apr 2022 00:27:45 +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 4KZwtn3Hnnz3pDv; Sat, 9 Apr 2022 00:27:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464065; 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=8iNMI4rFV9Alc0kbbkvv5r1vtjzNQMLci18VnDIK77s=; b=I7S0rsPBGEvqyZgqONSDpmxSJJeBUB2XOjYVRwZkrznfOeOK84s8gYf4pAhn3PHuMiyS0W BrbY8f7rrV2PJn1GhT0hEiQ7KPiWhEuKYHdGejp23On8hNOJG/2PjZAQIfGnHsgWuHiZ+F 4z0Ngwk9t5cvFpQ9BiiVAONXnZQ9/XME/SlhZrJ0KN4eymfIjdyaeiT+LP9Or4hxH/G6E+ gCB2iFtVdt7Ix37OT5Tvol9HOy9k3m+so8S83LF5OpSFDi5sl95774utdQeZSDCHOvgwM9 qtdo4tftQL2SkZWJ/ufjuMjAVXybKnvGqCyXWkkQ90yspldMewOvdt1LbfMORw== 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 3FB1D76BC; Sat, 9 Apr 2022 00:27:45 +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 2390RjPa056403; Sat, 9 Apr 2022 00:27:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390RjrT056402; Sat, 9 Apr 2022 00:27:45 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:27:45 GMT Message-Id: <202204090027.2390RjrT056402@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: 6d018c93eaff - main - mlx4: 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: 6d018c93eaff7140a4800bf0c770993f810306ea Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464065; 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=8iNMI4rFV9Alc0kbbkvv5r1vtjzNQMLci18VnDIK77s=; b=hjWmHUezfeYVDGFIL8eo+PSJu0OLZB+ZrYIzoiP1QvF2UCnbup5PI2YY3Uv00hDTSP5L4f Q0oBJFNQQ16Ql+rdLbMwgoxFmg6+OOqQAz9Bzwy2RpKADZpKxMWOtliRRC11f6wE1ycBBj 9bRO0gtsGGXc/EnYEdlnwWn8upM1N+DxG3GebY/WW9ZJBhqMZKORQJh0ID2pJ4pusnRvBS HhfIfQGUSWeDX92zcFxHGfPUQ7HCfdH4b681vDw/u1Cni4BuuMc0/og2ewcQ5O7cHhqW3C eGnDwUzTb3dEkhrqaZyljr5wSRtCNmzxajTs5fwyg+EjIA8zGoijgLfmeYrJkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464065; a=rsa-sha256; cv=none; b=OkBOks8N3b3SufZXtMuNUL/nl4IB+9gcs/Khyo+ZloAwdgRKZ8AUSaPBLMyZ/Vv5sEAV6g g256a/U3ILeDNchpC355b6aSucYntnH8qGFrwaFPuwg/1LDJpP9mcSiwiaQsqSJnaPNUFk W0SVxrkr702edGKaOFzlv4ewPMIANzR5C04q6mjRLgUX7aVCgbD+xmv8U6E9GZZvKwnhMj C2cCLufH9VDBEK/eoRWEjdn5Yhtf549BFbKBXbDdwwdHLRrlqnEWYOajxL+1UMjcyaPZnz z2OhKADjRS0slUZNo6W9ff5iF482t9OYDo4Hgiq8AYxNLl2rk5N0QCs7VKw/NQ== 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=6d018c93eaff7140a4800bf0c770993f810306ea commit 6d018c93eaff7140a4800bf0c770993f810306ea Author: John Baldwin AuthorDate: 2022-04-09 00:25:13 +0000 Commit: John Baldwin CommitDate: 2022-04-09 00:25:13 +0000 mlx4: Remove unused variables. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34826 --- sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c | 4 ---- sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c b/sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c index 87845ef1f17b..c4e9e2e600cd 100644 --- a/sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c +++ b/sys/dev/mlx4/mlx4_ib/mlx4_ib_cq.c @@ -180,7 +180,6 @@ int mlx4_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct mlx4_ib_dev *dev = to_mdev(ibdev); struct mlx4_ib_cq *cq = to_mcq(ibcq); struct mlx4_uar *uar; - void *buf_addr; int err; struct mlx4_ib_ucontext *context = rdma_udata_to_drv_context( udata, struct mlx4_ib_ucontext, ibucontext); @@ -209,7 +208,6 @@ int mlx4_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, goto err_cq; } - buf_addr = (void *)(unsigned long)ucmd.buf_addr; err = mlx4_ib_get_cq_umem(dev, udata, &cq->buf, &cq->umem, ucmd.buf_addr, entries); if (err) @@ -234,8 +232,6 @@ int mlx4_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, if (err) goto err_db; - buf_addr = &cq->buf.buf; - uar = &dev->priv_uar; } diff --git a/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c b/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c index 9bfdb83019ae..6742a1aeaf93 100644 --- a/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c +++ b/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c @@ -1284,7 +1284,6 @@ static int _mlx4_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) { struct mlx4_ib_dev *dev = to_mdev(qp->device); struct mlx4_ib_qp *mqp = to_mqp(qp); - struct mlx4_ib_pd *pd; if (is_qp0(dev, mqp)) mlx4_CLOSE_PORT(dev->dev, mqp->port); @@ -1298,7 +1297,6 @@ static int _mlx4_ib_destroy_qp(struct ib_qp *qp, struct ib_udata *udata) if (mqp->counter_index) mlx4_ib_free_qp_counter(dev, mqp); - pd = get_pd(mqp); destroy_qp_common(dev, mqp, udata); if (is_sqp(dev, mqp))