]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: add unlikely hint to error path in dma_mapping_error
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 26 Mar 2021 21:03:05 +0000 (22:03 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 14:41:08 +0000 (16:41 +0200)
commit94acb7a5de9d6915d25d04d17786201f7cf42c5e
tree7953f4c8999648567a3d3578ff7fe3c0f3e234d2
parent95a6144b1c23fa409b73f2fa94167ca9a9dad74f
dma-mapping: add unlikely hint to error path in dma_mapping_error

Zillions of drivers use the unlikely() hint when checking the result of
dma_mapping_error(). This is an inline function anyway, so we can move
the hint into the function and remove it from drivers over time.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-mapping.h