Re: [PATCH] dma-direct: clean up the logic in __dma_direct_alloc_pages()

From: Marek Szyprowski
Date: Mon Aug 11 2025 - 07:31:56 EST


On 10.07.2025 10:38, Petr Tesarik wrote:
> Convert a goto-based loop to a while() loop. To allow the simplification,
> return early when allocation from CMA is successful. As a bonus, this early
> return avoids a repeated dma_coherent_ok() check.
>
> No functional change.
>
> Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx>

Thanks, applied to dma-mapping-for-next branch.

Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland