Browse Source

Merge branch fixes of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/dmaengine.git

Vinod Koul 13 years ago
parent
commit
a5044cddad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/dma/dmatest.c

+ 1 - 1
drivers/dma/dmatest.c

@@ -599,7 +599,7 @@ static int dmatest_add_channel(struct dma_chan *chan)
 	}
 	if (dma_has_cap(DMA_PQ, dma_dev->cap_mask)) {
 		cnt = dmatest_add_threads(dtc, DMA_PQ);
-		thread_count += cnt > 0 ?: 0;
+		thread_count += cnt > 0 ? cnt : 0;
 	}
 
 	pr_info("dmatest: Started %u threads using %s\n",