Author: Andrzej Hajda <a.hajda@samsung.com> The function can return negative value. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 Signed-off-by: Andrzej Hajda Signed-off-by: Vinod Koul — drivers/dma/xgene-dma.c | 9 ++++++— 1 file changed, 6 insertions(+), 3 deletions(-) diff –git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c index b23e8d5..4c5ddda 100644 — a/drivers/dma/xgene-dma.c +++ b/drivers/dma/xgene-dma.c @@ -1421,15 …