From nobody Tue Jul 26 19:33:29 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 4LsnBy01sLz4Wxc5; Tue, 26 Jul 2022 19:33:30 +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 4LsnBx5w8hz47XY; Tue, 26 Jul 2022 19:33:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658864009; 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=kspUtQrWGNuqrD4Xced8otAUz1sNO4w/2pYvXiFi6m4=; b=bwHYTTaGFyxmEIPGIM/E3CkIl4i+M8e6eaCJFA5R2l4hjEHz9db3cgdb7sY8cHLwEMM0tW DUdnaILmiVTXLO3E2gr7An1I3Ebkd95E6vA3tCXD2ODwSi31r0Xk/SvC8Zz7DLf/NkC29i +4xi3+And5ZXk3AOpGNO9HPS/zcpqoR1momGEeaaDrYZmX+Gm2ZQXUtT70m/Znquu3rcmw 1vhFP16yP2udFSvQimkxQDHvvGspTrPZdXnGaf9Xz9G54vSFRDcCy7iSgRi/Cku3/Fw1Zj iHjmd91aHjAqlMys91oy/8JtEPHFgFk7CyqdX27ITZmF1FrilDgyeHCOGajRgg== 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 4LsnBx51vPzph3; Tue, 26 Jul 2022 19:33:29 +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 26QJXTF4033929; Tue, 26 Jul 2022 19:33:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJXTK0033928; Tue, 26 Jul 2022 19:33:29 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:33:29 GMT Message-Id: <202207261933.26QJXTK0033928@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Marcin Wojtas Subject: git: aabc314c3fff - stable/12 - ena: Remove write-only datapath variable 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: mw X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: aabc314c3fff131510452cd0c95932ffe73d46bb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658864009; 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=kspUtQrWGNuqrD4Xced8otAUz1sNO4w/2pYvXiFi6m4=; b=jbO6AxiOWyHMCsgJCxap4F0J6XiuFBnWlgdPV0zqydz0DpfWK+GkvpOEDZ+YLehCIetGun xnBkbR3QfH3HDXg5bcYezvuS/lDFMbwtTlI91SlPwj/tnr8iaK4DD2eGiSSYJIUrPVKtw8 UscwLpzVU07/Mk9//kGMYX/XM49/PIrjGHAuOSlcHY75ZXxP1AXuP1+xyuz070ILOFjxyc RstLWLlbf0Lj1N9UGDdgQwUBa6p+S8R1xVYr05RlgYG47TM563Swlbr13aN0GeK+tiC7Xg rTfqyQCIcYhN0b3VEYSYm7Bn80iiP9P98+4Gvg6r1teqpG9ravMQz6cgdStL6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658864009; a=rsa-sha256; cv=none; b=RglQe/KHL1IntwPW5kNNuAWWLekaRh/p2zqwjiOUNNM0NW/wnvax3wAjzeJBcu3zXuwd6u AVzIaZSltn9Kn/NltnKnhZ67cK6QS5qW70uQw1OL+iRORWuRXUHqrNxgTQ1HspzaT0Ev8B W9GlWrgGagpOM76G2kNpA7w0PC3ofBNsnzoH0tHTbxZH5OLTqtUcZXnzhVe89AZr4gcPN/ PfB/qbqXVJs6SsXyBE5fnCPTA1xKP0Nohq62vEoYwhW6KHFoCn5lnd++0yj5hJFTNxFP+S 6bmlLFMUwGNTbIgLhj3CdqVkM4RYBgukhWDcFcT+uAQVA0okdvAgQb4inoMvlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=aabc314c3fff131510452cd0c95932ffe73d46bb commit aabc314c3fff131510452cd0c95932ffe73d46bb Author: Michal Krawczyk AuthorDate: 2022-06-10 09:18:11 +0000 Commit: Marcin Wojtas CommitDate: 2022-07-26 19:33:04 +0000 ena: Remove write-only datapath variable The ena_qid variable value is never used. It can be safely removed. That also silences the compilation warning. Obtained from: Semihalf MFC after: 2 weeks Sponsored by: Amazon, Inc. (cherry picked from commit d5d5ea87236d8f839cad84296f23d285a696195c) --- sys/dev/ena/ena_datapath.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/ena/ena_datapath.c b/sys/dev/ena/ena_datapath.c index 729a50f59eeb..f23403b5089a 100644 --- a/sys/dev/ena/ena_datapath.c +++ b/sys/dev/ena/ena_datapath.c @@ -1101,7 +1101,6 @@ ena_start_xmit(struct ena_ring *tx_ring) { struct mbuf *mbuf; struct ena_adapter *adapter = tx_ring->adapter; - int ena_qid; int ret = 0; ENA_RING_MTX_ASSERT(tx_ring); @@ -1112,8 +1111,6 @@ ena_start_xmit(struct ena_ring *tx_ring) if (unlikely(!ENA_FLAG_ISSET(ENA_FLAG_LINK_UP, adapter))) return; - ena_qid = ENA_IO_TXQ_IDX(tx_ring->que->id); - while ((mbuf = drbr_peek(adapter->ifp, tx_ring->br)) != NULL) { ena_log_io(adapter->pdev, DBG, "\ndequeued mbuf %p with flags %#x and header csum flags %#jx\n",