Change type of size in trace_work() callback from uint32_t to int32_t.

This variable is set by the return value of dma_copy_to_host_nowait().
Unsigned type will mislead error checking.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Yan Wang 2017-12-20 15:45:27 +08:00 committed by Liam Girdwood
parent bd220b212f
commit b7cd6ac667
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static uint64_t trace_work(void *data, uint64_t delay)
struct dma_sg_config *config = &d->config;
unsigned long flags;
uint32_t avail = buffer->avail;
uint32_t size;
int32_t size;
uint32_t hsize;
uint32_t lsize;