diff options
author | Geert Uytterhoeven | 2014-07-10 15:29:32 +0200 |
---|---|---|
committer | Mark Brown | 2014-07-11 13:57:10 +0100 |
commit | 89e4b66a2e34744615c79349aa936df1b4204faf (patch) | |
tree | 75a9b942c590ebe9d0d978f3de2e8c07a6bc2e91 /drivers/Kconfig | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
spi: core: Fix check for dma_map_sg() failures
According to Documentation/DMA-API.txt, dma_map_sg() returns 0 on failure.
As spi_map_buf() returns an error code, convert zero into -ENOMEM.
Keep the existing check for negative numbers just in case.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/Kconfig')
0 files changed, 0 insertions, 0 deletions