From nobody Sat Feb 26 19:14:42 2022 X-Original-To: dev-commits-src-main@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 4260F19F0B0F; Sat, 26 Feb 2022 19:14:43 +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 4K5btV5J3wz4ZfT; Sat, 26 Feb 2022 19:14:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645902882; 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=Gt0vDEODxauAUxNypmRBHylIUsZm0oejNkqxFV7Ep2M=; b=jeVMDHZf44vVaxg+7ca1hbrM9r02EkIis9qZSdwz66rYJLanjYIiK3pMTkFlzxVOfslRsh tGavhuw4bSpD9NgZ+NyyfkC1xTfyZAxh9OXeGFbm/D/aIleHT2/jyNbdQOWfgNUtBLzEoD SIbium+PJq7/z9aWp3D59pqKt2mGNnSxLs7abmy3102HWWFgBqqGCKC+/E8e+HsZ55zgZf 4iRNBd1AJ1+UdrOC3oqPVv0O0zpmEcpFHct3lyopML+Rr8zPsmVK4XRm1eCBBHtqHrKf0z LlLqtK1rVgKmVx9Tu0OYVespz1OehsKQ3bMT8YIn+8RmnSGftKN7gl1xAAZQVQ== 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 95C9A193D6; Sat, 26 Feb 2022 19:14:42 +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 21QJEgqO007783; Sat, 26 Feb 2022 19:14:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21QJEgXU007782; Sat, 26 Feb 2022 19:14:42 GMT (envelope-from git) Date: Sat, 26 Feb 2022 19:14:42 GMT Message-Id: <202202261914.21QJEgXU007782@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: 0fd7b4c74d7d - main - Fix "set but not used" in the bfe driver. Remove dead code. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0fd7b4c74d7d1ba2b0c6616b1889e74bb5ba8800 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645902882; 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=Gt0vDEODxauAUxNypmRBHylIUsZm0oejNkqxFV7Ep2M=; b=NFzEvqcYjXBSK7aI8J62tEmE5zcNS5II+Ount/JRIzYX3wTRbJt5nyuvn9/RkvKf5Fb0Pq DMS+ece/Dn72tyHqJ5PGfPy/Wrq64OK6fjjGPbtQi0AmScLaeSonXrGnbkUbtm4c3pEa5t 6lKPEA8zzET3wEOolcRXbXOfzGWhorPhfIhzLtUi6oBcno7dgVKG9wOPCHJXx3c9sMJsc9 WQeUde9WsHj3ovg8W7Bou4VjsHBYQYiSKW0ncEJtD+50d6R4ELrvF0SuxjCnlsmLdxrwQg 9KhrMGEyhcGwrsn662B+f5floTR0FzsRGMzVgMJjx+djIELHPcNZLPGJRFZfcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645902882; a=rsa-sha256; cv=none; b=W4ikg7Edw9kdpitabziW18bUZNX7YYqIRxcp0bPzM1u8+yjTNEdwpYCx8pJ0FkXpxLK31c 6RFM3yESd1lGDsGCLoEVxDaMAGzs6kCxWlDKSGynCun13WKmz/YxE8IzT/KAKCBuW0Lgum 98ssxdjvUAVo9xW72GdVL4tHBGpX3TXhDAwyKUhlCvP608/hfj2MeOKPsz+7ZBF4q0b4/r X3CDVuVS3XNQNc2Vv7tXgbKY2HoTp8MM+MyJj6ehH+XV+qyg82Zp+YviqqFUOWqeR2/L2R CMG0Stj7oOh8S5yey61hkQ0bCh83LpkNGnKgbvzhCai88A9R4zUiMSctHurzuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=0fd7b4c74d7d1ba2b0c6616b1889e74bb5ba8800 commit 0fd7b4c74d7d1ba2b0c6616b1889e74bb5ba8800 Author: Scott Long AuthorDate: 2022-02-26 19:14:22 +0000 Commit: Scott Long CommitDate: 2022-02-26 19:14:22 +0000 Fix "set but not used" in the bfe driver. Remove dead code. --- sys/dev/bfe/if_bfe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 4d3cb164c115..2e516a88e0d7 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -864,11 +864,10 @@ bfe_get_config(struct bfe_softc *sc) static void bfe_pci_setup(struct bfe_softc *sc, u_int32_t cores) { - u_int32_t bar_orig, pci_rev, val; + u_int32_t bar_orig, val; bar_orig = pci_read_config(sc->bfe_dev, BFE_BAR0_WIN, 4); pci_write_config(sc->bfe_dev, BFE_BAR0_WIN, BFE_REG_PCI, 4); - pci_rev = CSR_READ_4(sc, BFE_SBIDHIGH) & BFE_RC_MASK; val = CSR_READ_4(sc, BFE_SBINTVEC); val |= cores;