git: cf8e3ea23f82 - main - pcm: plug set-but-not-used vars

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 09 Dec 2021 16:37:34 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=cf8e3ea23f8275dab1f2e9ef3649e0fb3c834f7b

commit cf8e3ea23f8275dab1f2e9ef3649e0fb3c834f7b
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-09 16:31:04 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
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)) {