Re: [PATCH] iommu: simplify list initialization in iommu_create_device_direct_mappings()
From: Jörg Rödel
Date: Sat Jan 10 2026 - 04:59:10 EST
On Tue, Dec 09, 2025 at 03:15:13PM +0800, Can Peng wrote:
> Use LIST_HEAD() to declare and initialize the 'mappings' list head in
> iommu_create_device_direct_mappings() instead of separate declaration and
> INIT_LIST_HEAD(). This simplifies the code by combining declaration and
> initialization into a single idiomatic form, improving readability without
> changing functionality.
>
> Signed-off-by: Can Peng <pengcan@xxxxxxxxxx>
> ---
> drivers/iommu/iommu.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.