From nobody Wed Apr 06 23:46:10 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 77F591A834E7; Wed, 6 Apr 2022 23:46:11 +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 4KYh3l0k7Rz4QnC; Wed, 6 Apr 2022 23:46:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288771; 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=RlqbmsYNT4LcOrUTjeiYl33L7DCdL7Q+A4qHtVUVOL8=; b=qZ9OT2vOK4H1shscSiC8/LYHtrTmuGYlj6W46nBYyHqKpyRDyjsNra0541BPum72rV8bRd ltNT5PRs9rhwxh1cOAz/icUL8kITYZxX/2iMqVSXg7+E9wkvF/AFCE3CPvUB4u6bS6Ay8Q BG934WbWQcvnjvQiX+CxZ60sS6gpnFeENPcrVESwzXsTxTEIQytK2kA+rWw8Fx8E1YS7Gh E8Ki3WEQ6fWOaZ+Cw8FCOmHtVdUQY7WYoBjakgA2HZ0WCHzugzmbZbcUCmdVSpqsVOGEAJ 5ASFiGbnsGVIaUV+z8AFJUPPe39+/W2IRVuldGMytpfaEzXJ4IoCzx+nfwI48g== 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 E444724C74; Wed, 6 Apr 2022 23:46:10 +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 236NkAF4008895; Wed, 6 Apr 2022 23:46:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkApE008894; Wed, 6 Apr 2022 23:46:10 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:10 GMT Message-Id: <202204062346.236NkApE008894@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: 583df2db5cf4 - main - bxe: Quiet set but not used warnings. 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: 583df2db5cf4caffbae903bbb05abeb11707838d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288771; 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=RlqbmsYNT4LcOrUTjeiYl33L7DCdL7Q+A4qHtVUVOL8=; b=dlCDrTil+NCIRmheNojF9MOUYPOUKhbG9lAkmd+N118oAQh+DnGx+rkcTVyZIup1XfQdZp ZRm3wbE02AWRRdhBmE8gvqdoqvZHJUshaVoSbX5SyoEWn+A7wl5HKCY0JHuYeOOCpsd/04 +5kGLjpkde9JQmhe9Xb+wDs1Ufx4f5lIZn2wffpBZb6lJmfPkw+XgkpM7w3gyThOXx5KJI Rs2TpnL+4SCF5TIHpxk0DcoNCsBu17Y2bNk1qgw3YTUmzLZxs/F3FZjbO2HKGimeh5fIHj uu1rDNwt6L9OErAS/6yvjv8p/vwu0dzBAdoTzpGwuRmKcjmlxWUkVS1aks2jDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288771; a=rsa-sha256; cv=none; b=wYNwOIhrnLQbyzyn+rfZMEC0ZbaiDvQzLKS3NJcC/mV6oOZ3aw8DmbY5LDdQ4f9kfzz8iZ 7OoC6rI9Fo672jT5YCF1NhWDLDYXxk4gbFdZ/Hwgh/gykPazOBeMWSfuKOOd22LgQhs7Lb X3/tRwF5kyE9efr7eXITV476ckbDKpRIUGaN5xlbENZyjFtIxwIBjVuCc7nLjpMy8H1iiN irRXdofH/KTSmtpI3jzZyMRBb6q6ApBqrqHMA3GzNXuMAByruuNS0uz2PbzYm6s+sKwUZg Rna2mT5a32TKEZMWdO/cDMMif7/FCdWUJ5+9be+q4ZiMmzfAxjU1TIU2u4KM8g== 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=583df2db5cf4caffbae903bbb05abeb11707838d commit 583df2db5cf4caffbae903bbb05abeb11707838d Author: John Baldwin AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:28 +0000 bxe: Quiet set but not used warnings. Comment out other references to more_tx since the only use is commented out. Remove unused is_parity variable. --- sys/dev/bxe/bxe.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c index b3bae94198b0..e30c217e63ea 100644 --- a/sys/dev/bxe/bxe.c +++ b/sys/dev/bxe/bxe.c @@ -8688,7 +8688,7 @@ bxe_handle_fp_tq(void *context, { struct bxe_fastpath *fp = (struct bxe_fastpath *)context; struct bxe_softc *sc = fp->sc; - uint8_t more_tx = FALSE; + /* uint8_t more_tx = FALSE; */ uint8_t more_rx = FALSE; BLOGD(sc, DBG_INTR, "---> FP TASK QUEUE (%d) <---\n", fp->index); @@ -8712,7 +8712,7 @@ bxe_handle_fp_tq(void *context, /* fp->txdata[cos] */ if (bxe_has_tx_work(fp)) { BXE_FP_TX_LOCK(fp); - more_tx = bxe_txeof(sc, fp); + /* more_tx = */ bxe_txeof(sc, fp); BXE_FP_TX_UNLOCK(fp); } @@ -8734,7 +8734,7 @@ static void bxe_task_fp(struct bxe_fastpath *fp) { struct bxe_softc *sc = fp->sc; - uint8_t more_tx = FALSE; + /* uint8_t more_tx = FALSE; */ uint8_t more_rx = FALSE; BLOGD(sc, DBG_INTR, "---> FP TASK ISR (%d) <---\n", fp->index); @@ -8746,7 +8746,7 @@ bxe_task_fp(struct bxe_fastpath *fp) /* fp->txdata[cos] */ if (bxe_has_tx_work(fp)) { BXE_FP_TX_LOCK(fp); - more_tx = bxe_txeof(sc, fp); + /* more_tx = */ bxe_txeof(sc, fp); BXE_FP_TX_UNLOCK(fp); } @@ -12355,7 +12355,6 @@ bxe_parity_recover(struct bxe_softc *sc) { uint8_t global = FALSE; uint32_t error_recovered, error_unrecovered; - bool is_parity; if ((sc->recovery_state == BXE_RECOVERY_FAILED) && @@ -12374,7 +12373,7 @@ bxe_parity_recover(struct bxe_softc *sc) switch(sc->recovery_state) { case BXE_RECOVERY_INIT: - is_parity = bxe_chk_parity_attn(sc, &global, FALSE); + bxe_chk_parity_attn(sc, &global, FALSE); if ((CHIP_PORT_MODE(sc) == CHIP_4_PORT_MODE) || (sc->error_status & BXE_ERR_MCP_ASSERT) ||