diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-10 20:05:52 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-01-03 14:11:54 +0100 |
commit | 9e919012e33c481991e46aa4cb13d807cd47b798 (patch) | |
tree | cba1c652c818ed0618c265a5e969a37707ce8fe2 /arch/x86/kernel/amd_iommu.c | |
parent | AMD IOMMU: move invalidation command building to a separate function (diff) | |
download | linux-9e919012e33c481991e46aa4cb13d807cd47b798.tar.xz linux-9e919012e33c481991e46aa4cb13d807cd47b798.zip |
AMD IOMMU: don't remove protection domain from iommu_pd_list
Impact: save unneeded logic to add and remove domains to the list
The removal of a protection domain from the iommu_pd_list is not
necessary. Another benefit is that we save complexity because we don't
have to readd it later when the device no longer uses the domain.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index fee16fbf2f33..b7b3067630cf 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -844,7 +844,6 @@ static struct dma_ops_domain *find_protection_domain(u16 devid) list_for_each_entry(entry, &iommu_pd_list, list) { if (entry->target_dev == devid) { ret = entry; - list_del(&ret->list); break; } } |