projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5b7afd
)
AMD/IOMMU: don't open-code for_each_amd_iommu()
author
Jan Beulich
<jbeulich@suse.com>
Thu, 16 May 2019 11:41:39 +0000
(13:41 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 16 May 2019 11:41:39 +0000
(13:41 +0200)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/passthrough/amd/iommu_intr.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/amd/iommu_intr.c
b/xen/drivers/passthrough/amd/iommu_intr.c
index dad2d1e5ab93cad8473ee2dcab53c9a94c28c290..da3c3c1a442b327009dc98634bf409fb744d0147 100644
(file)
--- a/
xen/drivers/passthrough/amd/iommu_intr.c
+++ b/
xen/drivers/passthrough/amd/iommu_intr.c
@@
-503,7
+503,7
@@
static struct amd_iommu *_find_iommu_for_device(int seg, int bdf)
{
struct amd_iommu *iommu;
-
list_for_each_entry ( iommu, &amd_iommu_head, list
)
+
for_each_amd_iommu ( iommu
)
if ( iommu->seg == seg && iommu->bdf == bdf )
return NULL;