pcmcsa_attach: eliminate write only variable unit

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 20:17:30 -06:00
parent 3e423419cf
commit 33985865b2

View File

@ -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;
/*