]> git.ipfire.org Git - thirdparty/linux.git/commit
dma-direct: consolidate the error handling in dma_direct_alloc_pages
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Feb 2020 20:26:00 +0000 (12:26 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2020 09:48:06 +0000 (10:48 +0100)
commit3d0fc341c4bb66b2c41c0d1ec954a6d300e100b7
treedec1544e023a1c82d0090d5200c1b04e51e34588
parent4f8232bbf887123f78bcdca3dfd2b3dfa52a0112
dma-direct: consolidate the error handling in dma_direct_alloc_pages

Use a goto label to merge two error return cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c