Skip to content
Commit 25a4ce56 authored by Petr Tesarik's avatar Petr Tesarik Committed by Christoph Hellwig
Browse files

dma-direct: cleanup parameters to dma_direct_optimal_gfp_mask



Since both callers of dma_direct_optimal_gfp_mask() pass
dev->coherent_dma_mask as the second argument, it is better to
remove that parameter altogether.

Not only is reducing number of parameters good for readability, but
the new function signature is also more logical: The optimal flags
depend only on data contained in struct device.

While touching this code, let's also rename phys_mask to phys_limit
in dma_direct_alloc_from_pool(), because it is indeed a limit.

Signed-off-by: default avatarPetr Tesarik <petrtesarik@huaweicloud.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 0eee5ae1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment