From bd6a3cb1cc31c74d36c1afaf1fbcc63ab18f993a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Jul 2011 23:22:00 +0200 Subject: Correctly check if DMA is already enabled --- dma/nwl_engine_buffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dma/nwl_engine_buffers.h b/dma/nwl_engine_buffers.h index 6b794c6..77484a2 100644 --- a/dma/nwl_engine_buffers.h +++ b/dma/nwl_engine_buffers.h @@ -129,7 +129,7 @@ static int dma_nwl_allocate_engine_buffers(nwl_dma_t *ctx, pcilib_nwl_engine_des else { nwl_read_register(val, ctx, info->base_addr, REG_DMA_ENG_CTRL_STATUS); - if (val&DMA_ENG_RUNNING == 0) pcilib_warning("Lost DMA buffers are found (DMA engine is stopped), reinitializing..."); + if ((val&DMA_ENG_RUNNING) == 0) pcilib_warning("Lost DMA buffers are found (DMA engine is stopped), reinitializing..."); else preserve = 1; } } -- cgit v1.2.3