dmatest: store correct thread count in dmatest_add_channel()
Subsystems (2)
PATCH 1/1 dmatest: store correct thread count in dmatest_add_channel()
The original code added 1 to the thread_count, but the intent was to add += cnt.
Signed-off-by Dan Carpenter <[email protected]>
drivers/dma/dmatest.c +1 -1
@@ -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",
Ping?
regards,
dan carpenter
Quoted 22 lines · Dan Carpenter
The original code added 1 to the
thread_count, but the intent was to add += cnt.Signed-off-by Dan Carpenter <[email protected]>drivers/dma/dmatest.c +1
-2@@ -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", --To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · Dan Carpenter
Ping?
regards,
dan carpenter
Just a comedy of delay, on my part, in getting this patch merged. In fact there is this fix that pre-dates yours:
http://marc.info/?l=linux-kernel&m1388785009475&w=2
I'll push this along.
Thanks for the nudge,
Dan