Re: [PATCH v2] iommu: simplify list initialization in iommu_create_device_direct_mappings() and iommu_group_show_resv_regions()

From: Vasant Hegde

Date: Mon Jan 12 2026 - 00:30:04 EST


On 1/12/2026 8:51 AM, Can Peng wrote:
> Use LIST_HEAD() to declare and initialize list heads in both
> iommu_create_device_direct_mappings() and iommu_group_show_resv_regions()
> 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>

Patch looks good.

Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>

-Vasant