aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-02-21 10:03:38 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-02-21 10:08:20 +0000
commit6582b75a32b08004564c7ab97084fe8f2bd08fa5 (patch)
treeeb2841d14d15d37c94ae7f7002e0930ba204e11a
parent79778f86922582c44a777c98f54b6f7cf842cbed (diff)
audio_soc: Plug set but not used variable
Sponsored by: Beckhoff Automation GmbH & Co. KG
-rw-r--r--sys/dev/sound/fdt/audio_soc.c4
1 files changed, 0 insertions, 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)