dma/sb16: make clang analyzer not complain

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2010-01-12 21:55:45 +03:00
parent 5a5d4a7651
commit 514d97dea6
2 changed files with 3 additions and 2 deletions

View File

@ -344,7 +344,6 @@ static void channel_run (int ncont, int ichan)
} }
#endif #endif
r = dma_controllers[ncont].regs + ichan;
n = r->transfer_handler (r->opaque, ichan + (ncont << 2), n = r->transfer_handler (r->opaque, ichan + (ncont << 2),
r->now[COUNT], (r->base[COUNT] + 1) << ncont); r->now[COUNT], (r->base[COUNT] + 1) << ncont);
r->now[COUNT] = n; r->now[COUNT] = n;

View File

@ -782,8 +782,10 @@ static void complete (SB16State *s)
break; break;
case 0xe2: case 0xe2:
#ifdef DEBUG
d0 = dsp_get_data (s); d0 = dsp_get_data (s);
ldebug ("E2 = %#x\n", d0); dolog ("E2 = %#x\n", d0);
#endif
break; break;
case 0xe4: case 0xe4: