pcmcsa_attach: eliminate write only variable unit
Sponsored by: Netflix
This commit is contained in:
parent
3e423419cf
commit
33985865b2
@ -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;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user