From nobody Tue Dec 14 14:59:31 2021 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 67E3E18F5B63; Tue, 14 Dec 2021 14:59:32 +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 4JD1kD14K8z3DKY; Tue, 14 Dec 2021 14:59:32 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 F36DE1E7A; Tue, 14 Dec 2021 14:59:31 +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 1BEExVau048326; Tue, 14 Dec 2021 14:59:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEExVf8048325; Tue, 14 Dec 2021 14:59:31 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:59:31 GMT Message-Id: <202112141459.1BEExVf8048325@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 06c95f1facd1 - main - bhnd: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 06c95f1facd191ad62fb5c1854342d02d084166d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639493972; 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=xktQ+wRKMXfLOju9CDRyabbNj0ANvgCduRhYVtFKzi0=; b=bRQIpXQh7YH3JbupDb6yZui3z9UrAzzqK9YNok+yVQS5u39JZyHTf+rxg0ducdVMKMekYh xnCl0HEy1MrkRVXUqqSGwuJl6vX+OBFe3DbPfyxe+qQ3Ae6yhpx5dE1+J4LBcAyFy9GvjE vb2HWYct+1sCTRPdSGhcRs496cmvpc/j/DEwl58iLBrJwop+KEP1Ad+cG8TAjKtPbYWLfG NlvBY6oSMw4oSJB2dMw4jkmQ6xr2f6/G67VUHGaIGm8HxlmnC3FB1co4hiTcH6Y2EmS650 TUX8tLEcnbsZClh42HNSRTmDUxetHSXG0YN3H4LO4jEcwRXGyPq29l1khRHShQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639493972; a=rsa-sha256; cv=none; b=W5mIZCLgQo/m6z8w614r7LwhPTtHgHe3iEaCV+sJ0hv3xDs7f/OjIBresuNSRg+hYATbQu ZuFGmkFSkSAEJddhmRu0ua9oNFajS3YMP5zXgkIC5164Rb+GIabEB2HGMsBgi0m5PrDB8z 91nWIbQYu1NN7DL8LyC2iH0VrEKz6Bh6waOtA8Lroxx2WAbSdbUPe7Uh2xxY2HhgZrHIuD 6AZ3X/4y3wHrYT1kttSpTDlV9Gtr37oBoDpPFITYvbYViRkGuwAhRs417rbNA4aNCpozLN cBXL/4I09drJMfZsI2TrHWkMDO3UABPueHOAm/hqnip5vlUG2zZh5Fr/H0zgcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=06c95f1facd191ad62fb5c1854342d02d084166d commit 06c95f1facd191ad62fb5c1854342d02d084166d Author: Mateusz Guzik AuthorDate: 2021-12-14 14:59:09 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:59:09 +0000 bhnd: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/bhnd/bhnd.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/sys/dev/bhnd/bhnd.c b/sys/dev/bhnd/bhnd.c index 0413970e5665..d393c30f160d 100644 --- a/sys/dev/bhnd/bhnd.c +++ b/sys/dev/bhnd/bhnd.c @@ -485,15 +485,12 @@ bhnd_generic_alloc_pmu(device_t dev, device_t child) int bhnd_generic_release_pmu(device_t dev, device_t child) { - struct bhnd_softc *sc; struct bhnd_core_clkctl *clkctl; struct bhnd_resource *r; device_t pmu_dev; bus_topo_assert(); - sc = device_get_softc(dev); - if (device_get_parent(child) != dev) return (EINVAL); @@ -577,14 +574,11 @@ bhnd_generic_get_clock_freq(device_t dev, device_t child, bhnd_clock clock, int bhnd_generic_request_clock(device_t dev, device_t child, bhnd_clock clock) { - struct bhnd_softc *sc; struct bhnd_core_clkctl *clkctl; uint32_t avail; uint32_t req; int error; - sc = device_get_softc(dev); - if (device_get_parent(child) != dev) return (EINVAL); @@ -696,14 +690,11 @@ bhnd_generic_enable_clocks(device_t dev, device_t child, uint32_t clocks) int bhnd_generic_request_ext_rsrc(device_t dev, device_t child, u_int rsrc) { - struct bhnd_softc *sc; struct bhnd_core_clkctl *clkctl; uint32_t req; uint32_t avail; int error; - sc = device_get_softc(dev); - if (device_get_parent(child) != dev) return (EINVAL); @@ -712,8 +703,6 @@ bhnd_generic_request_ext_rsrc(device_t dev, device_t child, u_int rsrc) BHND_ASSERT_CLKCTL_AVAIL(clkctl); - sc = device_get_softc(dev); - if (rsrc > BHND_CCS_ERSRC_MAX) return (EINVAL); @@ -739,12 +728,9 @@ bhnd_generic_request_ext_rsrc(device_t dev, device_t child, u_int rsrc) int bhnd_generic_release_ext_rsrc(device_t dev, device_t child, u_int rsrc) { - struct bhnd_softc *sc; struct bhnd_core_clkctl *clkctl; uint32_t mask; - sc = device_get_softc(dev); - if (device_get_parent(child) != dev) return (EINVAL); @@ -753,8 +739,6 @@ bhnd_generic_release_ext_rsrc(device_t dev, device_t child, u_int rsrc) BHND_ASSERT_CLKCTL_AVAIL(clkctl); - sc = device_get_softc(dev); - if (rsrc > BHND_CCS_ERSRC_MAX) return (EINVAL); @@ -801,12 +785,9 @@ int bhnd_generic_get_nvram_var(device_t dev, device_t child, const char *name, void *buf, size_t *size, bhnd_nvram_type type) { - struct bhnd_softc *sc; device_t nvram, parent; int error; - sc = device_get_softc(dev); - /* If a NVRAM device is available, consult it first */ nvram = bhnd_retain_provider(child, BHND_SERVICE_NVRAM); if (nvram != NULL) { @@ -938,9 +919,6 @@ bhnd_child_location(device_t dev, device_t child, struct sbuf *sb) void bhnd_generic_child_deleted(device_t dev, device_t child) { - struct bhnd_softc *sc; - - sc = device_get_softc(dev); /* Free device info */ if (bhnd_get_pmu_info(child) != NULL) {