dma-mapping: disallow .map_sg operations from returning zero on error
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 9 Aug 2021 15:13:31 +0000 (17:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:15:02 +0000 (17:15 +0200)
commitd03c54419274f96434e2ad74e59e67ec6d54ca86
tree01226f9a07092a6c4d83ecf6e6adf594c595bafa
parent66ab63104f9cab09209851fef168f5972d791903
dma-mapping: disallow .map_sg operations from returning zero on error

Now that all the .map_sg operations have been converted to returning
proper error codes, drop the code to handle a zero return value,
add a warning if a zero is returned.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/mapping.c