pcm via82c686: Remove unused variables.

This commit is contained in:
John Baldwin 2022-04-07 17:01:29 -07:00
parent 11fd7ec044
commit eda611e45e

View File

@ -341,14 +341,12 @@ viachan_trigger(kobj_t obj, void *data, int go)
{
struct via_chinfo *ch = data;
struct via_info *via = ch->parent;
struct via_dma_op *ado;
bus_addr_t sgd_addr = ch->sgd_addr;
if (!PCMTRIG_COMMON(go))
return 0;
ado = ch->sgd_table;
DEB(printf("ado located at va=%p pa=%x\n", ado, sgd_addr));
DEB(printf("ado located at va=%p pa=%x\n", ch->sgd_table, sgd_addr));
snd_mtxlock(via->lock);
if (go == PCMTRIG_START) {
@ -368,11 +366,9 @@ viachan_getptr(kobj_t obj, void *data)
{
struct via_chinfo *ch = data;
struct via_info *via = ch->parent;
struct via_dma_op *ado;
bus_addr_t sgd_addr = ch->sgd_addr;
u_int32_t ptr, base, base1, len, seg;
ado = ch->sgd_table;
snd_mtxlock(via->lock);
base1 = via_rd(via, ch->base, 4);
len = via_rd(via, ch->count, 4);