]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu: simplify list initialization in iommu_create_device_direct_mappings()
authorCan Peng <pengcan@kylinos.cn>
Tue, 9 Dec 2025 07:15:13 +0000 (15:15 +0800)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 10 Jan 2026 09:58:54 +0000 (10:58 +0100)
commit16e3423fc755cf9ddcceefaf70869311046928e2
tree4028dab04efb7a05e142364536af901b9cba6f9b
parenta8258ffed2efdf533bdc756141eeb7bc5301ad4f
iommu: simplify list initialization in iommu_create_device_direct_mappings()

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@kylinos.cn>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/iommu.c