From 514d97dea6f5ab8b995275c9b022af85a8846e08 Mon Sep 17 00:00:00 2001 From: malc Date: Tue, 12 Jan 2010 21:55:45 +0300 Subject: [PATCH] dma/sb16: make clang analyzer not complain Signed-off-by: malc --- hw/dma.c | 1 - hw/sb16.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/dma.c b/hw/dma.c index 44c642ea11..e5f7af7a88 100644 --- a/hw/dma.c +++ b/hw/dma.c @@ -344,7 +344,6 @@ static void channel_run (int ncont, int ichan) } #endif - r = dma_controllers[ncont].regs + ichan; n = r->transfer_handler (r->opaque, ichan + (ncont << 2), r->now[COUNT], (r->base[COUNT] + 1) << ncont); r->now[COUNT] = n; diff --git a/hw/sb16.c b/hw/sb16.c index 9f4ac5040e..78590a76f1 100644 --- a/hw/sb16.c +++ b/hw/sb16.c @@ -782,8 +782,10 @@ static void complete (SB16State *s) break; case 0xe2: +#ifdef DEBUG d0 = dsp_get_data (s); - ldebug ("E2 = %#x\n", d0); + dolog ("E2 = %#x\n", d0); +#endif break; case 0xe4: -- 2.11.0