aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iommu/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2019-12-23 14:09:46 +0100
committerJoerg Roedel <jroedel@suse.de>2019-12-23 14:09:46 +0100
commit2ca6b6dc8512abd697c251c3e492fb12f3cb1856 (patch)
treeb362b7e365ab29de53faf65394cb261d94ec575a /drivers/iommu/amd_iommu_init.c
parentiommu/amd: Only support x2APIC with IVHD type 11h/40h (diff)
downloadwireguard-linux-2ca6b6dc8512abd697c251c3e492fb12f3cb1856.tar.xz
wireguard-linux-2ca6b6dc8512abd697c251c3e492fb12f3cb1856.zip
iommu/amd: Remove unused variable
The iommu variable in set_device_exclusion_range() us unused now and causes a compiler warning. Remove it. Fixes: 387caf0b759a ("iommu/amd: Treat per-device exclusion ranges as r/w unity-mapped regions") Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-rw-r--r--drivers/iommu/amd_iommu_init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index 36649592ddf3..ba7ee4aa04f9 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1118,8 +1118,6 @@ static int __init add_early_maps(void)
*/
static void __init set_device_exclusion_range(u16 devid, struct ivmd_header *m)
{
- struct amd_iommu *iommu = amd_iommu_rlookup_table[devid];
-
if (!(m->flags & IVMD_FLAG_EXCL_RANGE))
return;