From: Ricardo Ribalda Delgado Date: Wed, 11 Feb 2015 12:53:15 +0000 (+0100) Subject: include/dma-mapping: Clarify output of dma_map_sg X-Git-Tag: omap-for-v4.1/fixes-rc1~122^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04abab698285297115e5096b3100df1064045529;p=pandora-kernel.git include/dma-mapping: Clarify output of dma_map_sg Although dma_map_sg returns 0 on error and it cannot return a value < 0, the function returns a signed integer. Most of the time, this function is used with a scatterlist structure. This structure uses an unsigned integer for the number of memory. A dma developer that has not read in detail DMA-API.txt, can wrongly return a value < 0 on error. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed