From nobody Tue Jul 26 19:30:58 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 4Lsn830SGPz4Wwl9; Tue, 26 Jul 2022 19:30:59 +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 4Lsn8267bBz431s; Tue, 26 Jul 2022 19:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863858; 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=2aS+vZkZIKT4bU1xMpPlQTLDGL9WsJfv2yI+u059lHM=; b=A4ybotwX/gxuzAhXMpIBchSJ3267dASAfuckh9Q5blhemcriA6rpsK8BSnw2clcKG1yZHW uJrRugwKoc0A3QN7P7lQpZteOMYM8COSB5s37ovzCeyQHpD6R5M+csQbSAyS8ahCIH6QHv LExTDSUjqGk2jmMONKJNtmIf+Pf6Xy6CMo0bMUIgmlgaYOtcMbwL8hlNjJ5aWY+phLtq8F HIROP+B6ydFjtV29LXd2sHBV9etgxJipHYAHod3hy/SavyzK03RBBOzJG6wZIlo9tM261E E7/vkb3c8ikxKRJwS3OrFIbxz2QtBPp+f4h8v8RgKpsfbN/5YJMJedfPd/Jcqw== 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 4Lsn825FYKzpQ5; Tue, 26 Jul 2022 19:30:58 +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 26QJUwnB029764; Tue, 26 Jul 2022 19:30:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJUw0K029763; Tue, 26 Jul 2022 19:30:58 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:30:58 GMT Message-Id: <202207261930.26QJUw0K029763@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: af445a63a3d8 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: af445a63a3d8d5b6426edefb696cb15bc514c78c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863858; 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=2aS+vZkZIKT4bU1xMpPlQTLDGL9WsJfv2yI+u059lHM=; b=NBvFzSsmrEpsoWwBjhAwfp0GaA/WGPsQB/G3Y/uZClcmiH1RuVLIhwF1VG6ZmONa85q9F0 Dh3bxikIX4f789dtda/nxQSV8pRU2qVgOzIAgjuHptOYVEGANOvTq0rv068ELkfJ3qE1E6 8ATYVylmtlZJjVyo1U/3LQC/N2MHF2rAL9SY/u3BwBDMTp6PTSow6m3LR1bZ12flVN1i1A /0/6jEyvYSvwZY38ZsOhxmj3DEcROKEKKtCN7P0vqRncvhVMIr2MJyjNS2B/HkeQgxhDZB SL8cNjEQ/Q0gSUFdEVkAhLsRgo9lfcFB49AkIshKg9c6LVfezIJ+U3mSJjQOIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863858; a=rsa-sha256; cv=none; b=KkOhZIAebbrIjCkEPvvSP1TsZ6wywngKf3/XMH96MYMyX+uQcBoeu521WzQIyeU4kWV504 YyDnThpl5RFUW/zqPrhq5hYuOjYk/WlGqAsJ9tED8X251o11Eu14ktfFTx+klq5YkAJcre IUPd8oZvOpviwXbZiMoPEZeYBWXpduKQY2oidm4hf4N5ukdRHR6in2aol8PWPOQIX9nT7v MYA9EQzSvdHHqzI/iRTzyZ7XTdDHd76tuLVg9N9kK49JnyPjhQF7f9/IVQWGZ880HedaOX hzep/S5YtYeaeWevisbGS0ejfmrs4eWqGutjn8123KFf4//wd0AMwOuY7UBQQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=af445a63a3d8d5b6426edefb696cb15bc514c78c commit af445a63a3d8d5b6426edefb696cb15bc514c78c Author: Michal Krawczyk AuthorDate: 2022-06-10 09:18:11 +0000 Commit: Marcin Wojtas CommitDate: 2022-07-26 19:30:16 +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 6a7839d49583..d5ecb4ece985 100644 --- a/sys/dev/ena/ena_datapath.c +++ b/sys/dev/ena/ena_datapath.c @@ -1100,7 +1100,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); @@ -1111,8 +1110,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",