dma: at_hdmac: fix invalid remaining bytes detection
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 1 Aug 2014 16:51:46 +0000 (18:51 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 7 Aug 2014 16:22:27 +0000 (21:52 +0530)
commit6758ddafad55fc8e665bb03ff103d3e410483fe9
tree9f6455b28f7d442029844b505fe03a30cb012520
parentcfc6abc3f1ee01dec27a6166f518f084544e4387
dma: at_hdmac: fix invalid remaining bytes detection

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 <alexandre.belloni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c