diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2015-02-11 13:53:15 +0100 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2015-03-09 13:05:47 +0100 |
commit | 04abab698285297115e5096b3100df1064045529 (patch) | |
tree | b81b23e56d884fb10d32ffadec2bc8ae83e7211a /include/scsi | |
parent | asm/dma-mapping-common: Clarify output of dma_map_sg_attrs (diff) | |
download | linux-04abab698285297115e5096b3100df1064045529.tar.xz linux-04abab698285297115e5096b3100df1064045529.zip |
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 <ricardo.ribalda@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions