From nobody Thu Dec 09 16:37:34 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 73FAD18D2897; Thu, 9 Dec 2021 16:37: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 4J907f6DYHz56Rm; Thu, 9 Dec 2021 16:37:34 +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 9381721E6; Thu, 9 Dec 2021 16:37:34 +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 1B9GbYYA058506; Thu, 9 Dec 2021 16:37:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9GbYZV058505; Thu, 9 Dec 2021 16:37:34 GMT (envelope-from git) Date: Thu, 9 Dec 2021 16:37:34 GMT Message-Id: <202112091637.1B9GbYZV058505@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: cf8e3ea23f82 - main - pcm: 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: cf8e3ea23f8275dab1f2e9ef3649e0fb3c834f7b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639067855; 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=hNJXxx8i0qTFKXNu+E5njZHpzaeGUSQ9lr0vZ2J0wFg=; b=pYS1VqsMzLgSNUivA8wiJmqIIsDlL2+nGrAfvMOeRzYpfNf2b9Q3CXVFYHgI697aknP2+l WUJs10Rn/xAdyic7KkIN8ZcUi5fXJ/hgE3UhJgpXN+wjCkBe6HQaxLumpCNQHx8P+PGUWG AZV0fAiJ/C1eHy965N8OF5Tv3+3Crkr679QwMl3Z79IteeuIq1jux3gJ410LXo4E3RzGtL QFEONZZM4gy9E5RQ/ktQyCFuZVw02p8QISbugUGm1M43SyEY7INcvXMCjQeH62uVn/bFLH iBSg8xvshJwQgpNPP1UQCdJ/F0gbLlrAeSG/qF4xpWvwi5vmwqpCta9L+2TdGw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639067855; a=rsa-sha256; cv=none; b=LcLxudAlFghqz4kPa30Oqpj465EzZeb+s8Me/SuU0PAAIJx5qCKKoLC+5Xmdwh8gwsZuh0 a16cgy7TIjWcicrWDYO1vgp5jcjUxwnSy2HC799i9tAokddYaCySN5APA25/P32FwIPQF6 eOcltp4Q0kURyglns7VNdz9TszENH+OrG3ApEhcwZv14RJHyYOESeQGWF4SawnDd11UMrg 9EL/SPcHWUD9oHtB859cKdDNoUAYkZ0RYnrN1nCXlg/cgc2AuagRyCeoaD6HuKDcXGL3bI 1d32xCRHgITgS5qd6607YhwE8+11wjhSgCmuu/4AZoR6SYiYpyFCAP3HpQ7eeg== 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=cf8e3ea23f8275dab1f2e9ef3649e0fb3c834f7b commit cf8e3ea23f8275dab1f2e9ef3649e0fb3c834f7b Author: Mateusz Guzik AuthorDate: 2021-12-09 16:31:04 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 16:37:26 +0000 pcm: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/sound/pcm/sound.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 663ec84f93b6..1560da40c9c2 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -595,7 +595,7 @@ pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t c int pcm_chn_destroy(struct pcm_channel *ch) { - struct snddev_info *d; + struct snddev_info *d __diagused; int err; d = ch->parentsnddev; @@ -1171,9 +1171,7 @@ pcm_unregister(device_t dev) { struct snddev_info *d; struct pcm_channel *ch; - struct thread *td; - td = curthread; d = device_get_softc(dev); if (!PCM_ALIVE(d)) {