From nobody Sat Dec 18 13:14:35 2021 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 E3E0D18FF035; Sat, 18 Dec 2021 13:14:35 +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 4JGRCH3tCDz3KrT; Sat, 18 Dec 2021 13:14:35 +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 6334210169; Sat, 18 Dec 2021 13:14:35 +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 1BIDEZp4033767; Sat, 18 Dec 2021 13:14:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BIDEZ3N033766; Sat, 18 Dec 2021 13:14:35 GMT (envelope-from git) Date: Sat, 18 Dec 2021 13:14:35 GMT Message-Id: <202112181314.1BIDEZ3N033766@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: f48ab7cc481e - main - iicbus: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f48ab7cc481e2bdf60a6449179087df4b73db426 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639833275; 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=kWzdBc0sM1EpKZgLmOf9n3Wx1Whnjx1ILKWL/KpP6r8=; b=qiCpeHnJH5u9es1vgbiRZQZtBCOOKmsTSk/VkEo8kE8b9dT5Bc3SujhW5wIrQm4VU1fb+q pdzVl908dYX7Z+rsRv1zDOPKkcijIVvBPJ0YKWqWozSiRD7jvbl49+tPMd4RzB8h6grfqF DgYc6c8BQIG5wFJenXSBGhCCSjh1MgOmZ6DW8KK90xVjZSesoea27Dvgw1XhXZflB971lu o2qeI6eBYgZP89h8KeFhV4TP98NWEgUUkKRseDhB2eqZHg0ZZnaNXlepdnEfi0/mIeOXn3 05nHFo6gZfTHJXRut66+pDopO82PYAlFoig4oXhJ49WtdWPhJgKFWCMGjJC9mg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639833275; a=rsa-sha256; cv=none; b=mnZX2tElVdijY//+C1U2b4ZhQ0pqMYAZBBesKa963HQYEijHiWhRxZpCyLtSFhSxhFbVWt a2GuaW0OQXv/k9/mEh/VBecQLWOcmyLrCisVfC3O74cp6ObkUSgQzj2WH12l9YAMG4fc2O uLOpNniDZyL2v6Np7nDsxxA+uJQnMz3Qbf/AoJfyKv3UPAgb7Ubn9PUBqRfGBH3/Kgu6lL hRymd2BPqe7RlC/k2EcPZcw2JXaEdyk/y1x5XuQSX3UtZShFdwIu2CDIdzW4wrnXw21Ekt GywnEln0wtFb+9RfrlXq78RGycZBXZL5ingi/HOdvc+XVLuNd8wz4mq1r9rzBg== 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=f48ab7cc481e2bdf60a6449179087df4b73db426 commit f48ab7cc481e2bdf60a6449179087df4b73db426 Author: Mateusz Guzik AuthorDate: 2021-12-18 13:14:04 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-18 13:14:04 +0000 iicbus: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/iicbus/htu21.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/iicbus/htu21.c b/sys/dev/iicbus/htu21.c index 6b834354d73f..53a2bf6d234b 100644 --- a/sys/dev/iicbus/htu21.c +++ b/sys/dev/iicbus/htu21.c @@ -300,13 +300,11 @@ htu21_set_cfg(device_t dev, uint8_t cfg) static int htu21_heater_sysctl(SYSCTL_HANDLER_ARGS) { - struct htu21_softc *sc; device_t dev; uint8_t cfg; int error, heater; dev = arg1; - sc = device_get_softc(dev); if (req->oldptr != NULL) { error = htu21_get_cfg(dev, &cfg); @@ -327,13 +325,11 @@ htu21_heater_sysctl(SYSCTL_HANDLER_ARGS) static int htu21_power_sysctl(SYSCTL_HANDLER_ARGS) { - struct htu21_softc *sc; device_t dev; uint8_t cfg; int error, power; dev = arg1; - sc = device_get_softc(dev); if (req->oldptr != NULL) { error = htu21_get_cfg(dev, &cfg);