From: Ricardo Ribalda Delgado Date: Wed, 11 Feb 2015 12:53:14 +0000 (+0100) Subject: asm/dma-mapping-common: Clarify output of dma_map_sg_attrs X-Git-Tag: omap-for-v4.1/fixes-rc1~122^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8582e267e9a29ccfd2151c5d74bc2b1440dfb827;p=pandora-kernel.git asm/dma-mapping-common: Clarify output of dma_map_sg_attrs Although dma_map_sg_attrs 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. The comment will help the driver developer, and the WARN_ON the dma developer. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed