From nobody Tue Dec 14 14:32:00 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 4424B18EF8E8; Tue, 14 Dec 2021 14:32:01 +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 4JD16T04w5z4rRp; Tue, 14 Dec 2021 14:32:01 +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 D6F071B44; Tue, 14 Dec 2021 14:32:00 +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 1BEEW0kF017118; Tue, 14 Dec 2021 14:32:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEW0fZ017117; Tue, 14 Dec 2021 14:32:00 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:32:00 GMT Message-Id: <202112141432.1BEEW0fZ017117@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: 17ad5b249dd7 - main - sis: 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: 17ad5b249dd79de8c4b4d7939f8165a07c114ac7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639492321; 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=ySoHhkU3JmaKpeW5TaP7vw3EAI+BXJwIpinT/1Dw2/M=; b=RB+PIQmwAAFvToBEe/CnwHFlfAQDWfshnQAjrueXYW1wWXgk1IzJC5VoqrajK3FfT3hGT9 epfwIaq8xZ4s/o3Jbecggnco9wxTv95e/BMA4lE/2X10cxUJafXQC53VlNxF63LQKvqVEm V6b47CrlRGOpZE+zcF8nzqFwQBet2ZTSXXG9TDmtHS0JfLH/GpRZgd2LL4BAyb9TKjVQgp kJ5k3L2/4fuDoHthnr4tuOM56jMs1UCKi+I+2yrJUKSM0tHJLTcGcal9CewdtN58QCQKue VtFBZE9qehjT409QOqi6S83LNYQwWxoU7Mo2QIOSM3mWxcBQfj5JzFtHTojMaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639492321; a=rsa-sha256; cv=none; b=iXdEKa5ZudpK0ZcMXngrHMVkpA+1tzruKRqgWuYs7ka5CcqTQaVRzMhahbxKxlCmZl9eon fsUZc2k7i1ruu2O0e5hE+pL/Wgzn6lGrkwwtKyneS3sBBsW3uRnrCabQNtgrK1Vwu618aC F4w6IFGLO9UWr66Vslw1AfrRNhJxmw4zxYFqsouAu07htrMLOAZjd+K4Y9vWwCm2zxF/iw bxlhgZWlYGlxBVdEgHh8IvJhTcBUBOVo5NY4Dv1hahxmarhPRfd9zau8N6cmtDWfuYixWR T6+V0hQK4DdPuYCHR416SkW+VgRApIZHtSZWRaNgHfw7XUzB4yrCFO+WoYUZ5g== 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=17ad5b249dd79de8c4b4d7939f8165a07c114ac7 commit 17ad5b249dd79de8c4b4d7939f8165a07c114ac7 Author: Mateusz Guzik AuthorDate: 2021-12-14 14:31:10 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:31:10 +0000 sis: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/sis/if_sis.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index b4cc9e38a653..ecc42e991df4 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -2372,12 +2372,10 @@ sis_add_sysctls(struct sis_softc *sc) { struct sysctl_ctx_list *ctx; struct sysctl_oid_list *children; - int unit; ctx = device_get_sysctl_ctx(sc->sis_dev); children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sis_dev)); - unit = device_get_unit(sc->sis_dev); /* * Unlike most other controllers, NS DP83815/DP83816 controllers * seem to pad with 0xFF when it encounter short frames. According