From 6582b75a32b08004564c7ab97084fe8f2bd08fa5 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 21 Feb 2022 11:03:38 +0100 Subject: [PATCH] audio_soc: Plug set but not used variable Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/dev/sound/fdt/audio_soc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/sound/fdt/audio_soc.c b/sys/dev/sound/fdt/audio_soc.c index 6ce64cc9eeed..627bd26094ba 100644 --- a/sys/dev/sound/fdt/audio_soc.c +++ b/sys/dev/sound/fdt/audio_soc.c @@ -207,12 +207,10 @@ static void * audio_soc_chan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir) { - struct audio_soc_softc *sc; struct audio_soc_channel *ausoc_chan; void *buffer; ausoc_chan = devinfo; - sc = ausoc_chan->sc; buffer = malloc(AUDIO_BUFFER_SIZE, M_DEVBUF, M_WAITOK | M_ZERO); if (sndbuf_setup(b, buffer, AUDIO_BUFFER_SIZE) != 0) { @@ -248,12 +246,10 @@ static int audio_soc_chan_free(kobj_t obj, void *data) { - struct audio_soc_softc *sc; struct audio_soc_channel *ausoc_chan; void *buffer; ausoc_chan = (struct audio_soc_channel *)data; - sc = ausoc_chan->sc; buffer = sndbuf_getbuf(ausoc_chan->buf); if (buffer)