summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-05-20 14:37:49 +0200
committerJoerg Roedel <jroedel@suse.de>2014-07-04 11:33:52 +0200
commit435bbb463349e369d070ffbfdaa00921ea828f83 (patch)
tree27f5c8172f72d166a37fc88b99c6fe4a8e72634c /drivers/iommu/dmar.c
parentiommu/vt-d: Use list_for_each_safe() to simplify code (diff)
downloadlinux-435bbb463349e369d070ffbfdaa00921ea828f83.tar.xz
linux-435bbb463349e369d070ffbfdaa00921ea828f83.zip
iommu/vt-d: Clear the redundant assignment in dmar_enable_qi
__dmar_enable_qi() will initialize free_head,free_tail and free_cnt for q_inval. Remove the redundant initialization in dmar_enable_qi(). Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 9a4f05e5b23f..f2eb0bc419f8 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -1339,9 +1339,6 @@ int dmar_enable_qi(struct intel_iommu *iommu)
return -ENOMEM;
}
- qi->free_head = qi->free_tail = 0;
- qi->free_cnt = QI_LENGTH;
-
raw_spin_lock_init(&qi->q_lock);
__dmar_enable_qi(iommu);