Skip to content

Commit 2ca6b6d

Browse files
committed
iommu/amd: Remove unused variable
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 <[email protected]>
1 parent 966b753 commit 2ca6b6d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/iommu/amd_iommu_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,8 +1118,6 @@ static int __init add_early_maps(void)
11181118
*/
11191119
static void __init set_device_exclusion_range(u16 devid, struct ivmd_header *m)
11201120
{
1121-
struct amd_iommu *iommu = amd_iommu_rlookup_table[devid];
1122-
11231121
if (!(m->flags & IVMD_FLAG_EXCL_RANGE))
11241122
return;
11251123

0 commit comments

Comments
 (0)