iommu/vt-d: Silence a variable set but not used
authorQian Cai <cai@lca.pw>
Mon, 3 Jun 2019 14:05:19 +0000 (10:05 -0400)
committerJoerg Roedel <jroedel@suse.de>
Tue, 18 Jun 2019 15:31:46 +0000 (17:31 +0200)
commitaf88ec3962010e3ac96bcfe5476c9bd68b42477f
tree92e7fd06f7838d5434b95a6d5d3fc5f55d469515
parent42db7c6a404b21dafd3288ffa43136da562490ac
iommu/vt-d: Silence a variable set but not used

The commit "iommu/vt-d: Probe DMA-capable ACPI name space devices"
introduced a compilation warning due to the "iommu" variable in
for_each_active_iommu() but never used the for each element, i.e,
"drhd->iommu".

drivers/iommu/intel-iommu.c: In function 'probe_acpi_namespace_devices':
drivers/iommu/intel-iommu.c:4639:22: warning: variable 'iommu' set but
not used [-Wunused-but-set-variable]
  struct intel_iommu *iommu;

Silence the warning the same way as in the commit d3ed71e5cc50
("drivers/iommu/intel-iommu.c: fix variable 'iommu' set but not used")

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c