The branch main has been updated by imp:

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

commit 33985865b2d8eafc9fc1d065dc06344c9c95c56c
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2022-04-05 02:17:30 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2022-04-05 04:30:07 +0000

    pcmcsa_attach: eliminate write only variable unit
    
    Sponsored by:           Netflix
---
 sys/dev/sound/pci/csapcm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/sound/pci/csapcm.c b/sys/dev/sound/pci/csapcm.c
index 7fd55291d876..e71821a50c6a 100644
--- a/sys/dev/sound/pci/csapcm.c
+++ b/sys/dev/sound/pci/csapcm.c
@@ -777,13 +777,11 @@ pcmcsa_attach(device_t dev)
 {
        struct csa_info *csa;
        csa_res *resp;
-       int unit;
        char status[SND_STATUSLEN];
        struct ac97_info *codec;
        struct sndcard_func *func;
 
        csa = malloc(sizeof(*csa), M_DEVBUF, M_WAITOK | M_ZERO);
-       unit = device_get_unit(dev);
        func = device_get_ivars(dev);
        csa->binfo = func->varinfo;
        /*

Reply via email to