mirror of https://github.com/ericonr/sndio.git
remove unused variables, from Michael W. Bombardieri
This commit is contained in:
parent
1949c506b8
commit
cfdd9671b8
|
@ -1050,7 +1050,6 @@ dev_attach(struct dev *d, char *name, unsigned mode,
|
|||
struct abuf *obuf, struct aparams *sopar, unsigned onch,
|
||||
unsigned xrun, int vol)
|
||||
{
|
||||
struct abuf *pbuf = NULL, *rbuf = NULL;
|
||||
struct aparams ipar, opar;
|
||||
struct aproc *conv;
|
||||
unsigned round, nblk, nch;
|
||||
|
@ -1066,7 +1065,6 @@ dev_attach(struct dev *d, char *name, unsigned mode,
|
|||
#endif
|
||||
if (mode & MODE_PLAY) {
|
||||
ipar = *sipar;
|
||||
pbuf = LIST_FIRST(&d->mix->outs);
|
||||
nblk = (d->bufsz / d->round + 3) / 4;
|
||||
round = dev_roundof(d, ipar.rate);
|
||||
nch = ipar.cmax - ipar.cmin + 1;
|
||||
|
@ -1110,7 +1108,6 @@ dev_attach(struct dev *d, char *name, unsigned mode,
|
|||
}
|
||||
if (mode & MODE_REC) {
|
||||
opar = *sopar;
|
||||
rbuf = LIST_FIRST(&d->sub->ins);
|
||||
round = dev_roundof(d, opar.rate);
|
||||
nblk = (d->bufsz / d->round + 3) / 4;
|
||||
nch = opar.cmax - opar.cmin + 1;
|
||||
|
@ -1152,7 +1149,6 @@ dev_attach(struct dev *d, char *name, unsigned mode,
|
|||
}
|
||||
if (mode & MODE_MON) {
|
||||
opar = *sopar;
|
||||
rbuf = LIST_FIRST(&d->submon->ins);
|
||||
round = dev_roundof(d, opar.rate);
|
||||
nblk = (d->bufsz / d->round + 3) / 4;
|
||||
nch = opar.cmax - opar.cmin + 1;
|
||||
|
|
Loading…
Reference in New Issue