The branch main has been updated by manu:

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

commit 6582b75a32b08004564c7ab97084fe8f2bd08fa5
Author:     Emmanuel Vadot <[email protected]>
AuthorDate: 2022-02-21 10:03:38 +0000
Commit:     Emmanuel Vadot <[email protected]>
CommitDate: 2022-02-21 10:08:20 +0000

    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)

Reply via email to