Skip to content

Commit

Permalink
iommu/amd: Remove unused variable
Browse files Browse the repository at this point in the history
The iommu variable in set_device_exclusion_range() us unused
now and causes a compiler warning. Remove it.

Fixes: 387caf0 ("iommu/amd: Treat per-device exclusion ranges as r/w unity-mapped regions")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
joergroedel committed Dec 23, 2019
1 parent 966b753 commit 2ca6b6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2ca6b6d

Please sign in to comment.