]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
arm64: allwinner: aw_i2s: Plug set but not used variable
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 09:54:17 +0000 (10:54 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 10:08:06 +0000 (11:08 +0100)
Sponsored by: Beckhoff Automation GmbH & Co. KG

sys/arm/allwinner/aw_i2s.c

index 013e88a548a8f33250e76cac52bb293a6207536a..d7478a443d3d7ca69d2b840a5356e0d5456fb7d0 100644 (file)
@@ -423,7 +423,7 @@ static int
 aw_i2s_dai_init(device_t dev, uint32_t format)
 {
        struct aw_i2s_softc *sc;
-       int fmt, pol, clk;
+       int fmt, pol;
        uint32_t ctl, fat0, chsel;
        u_int offset;
 
@@ -431,7 +431,6 @@ aw_i2s_dai_init(device_t dev, uint32_t format)
 
        fmt = AUDIO_DAI_FORMAT_FORMAT(format);
        pol = AUDIO_DAI_FORMAT_POLARITY(format);
-       clk = AUDIO_DAI_FORMAT_CLOCK(format);
 
        ctl = I2S_READ(sc, DA_CTL);
        fat0 = I2S_READ(sc, DA_FAT0);