git: eaa861ec1075 - stable/13 - pcmcsa_attach: eliminate write only variable unit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:49 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=eaa861ec1075e71d74dfcee91e7f02dbea1bd750 commit eaa861ec1075e71d74dfcee91e7f02dbea1bd750 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-08 17:53:32 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-10-02 04:25:54 +0000 pcmcsa_attach: eliminate write only variable unit Sponsored by: Netflix (cherry picked from commit 33985865b2d8eafc9fc1d065dc06344c9c95c56c) --- 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 a0b35c909931..41500e46e66d 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; /*