Commit 2ca6b6dc authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Remove unused variable



The iommu variable in set_device_exclusion_range() us unused
now and causes a compiler warning. Remove it.

Fixes: 387caf0b ("iommu/amd: Treat per-device exclusion ranges as r/w unity-mapped regions")
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 966b753c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;