Re: [PATCH] dma: at_hdmac: fix invalid remaining bytes detection

2014-08-01 Thread Sergei Shtylyov
Hello. On 08/01/2014 02:03 PM, Alexandre Belloni wrote: Found using smatch: drivers/dma/at_hdmac.c:299 atc_get_bytes_left() warn: unsigned 'atchan->remain_desc' is never less than zero. Signed-off-by: Alexandre Belloni --- drivers/dma/at_hdmac.c | 12 +++- 1 file changed, 7 inser

[PATCH] dma: at_hdmac: fix invalid remaining bytes detection

2014-08-01 Thread Alexandre Belloni
Found using smatch: drivers/dma/at_hdmac.c:299 atc_get_bytes_left() warn: unsigned 'atchan->remain_desc' is never less than zero. Signed-off-by: Alexandre Belloni --- drivers/dma/at_hdmac.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/