Skip to content

Commit 858defa

Browse files
Adrian Huangjoergroedel
authored andcommitted
iommu/amd: Remove local variables
The usage of the local variables 'range' and 'misc' was removed from commit 226e889 ("iommu/amd: Remove first/last_device handling") and commit 23c742d ("iommu/amd: Split out PCI related parts of IOMMU initialization"). So, remove them accrodingly. Signed-off-by: Adrian Huang <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 2ca6b6d commit 858defa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/iommu/amd_iommu_init.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ static const struct attribute_group *amd_iommu_groups[] = {
17181718
static int __init iommu_init_pci(struct amd_iommu *iommu)
17191719
{
17201720
int cap_ptr = iommu->cap_ptr;
1721-
u32 range, misc, low, high;
1721+
u32 low, high;
17221722
int ret;
17231723

17241724
iommu->dev = pci_get_domain_bus_and_slot(0, PCI_BUS_NUM(iommu->devid),
@@ -1731,10 +1731,6 @@ static int __init iommu_init_pci(struct amd_iommu *iommu)
17311731

17321732
pci_read_config_dword(iommu->dev, cap_ptr + MMIO_CAP_HDR_OFFSET,
17331733
&iommu->cap);
1734-
pci_read_config_dword(iommu->dev, cap_ptr + MMIO_RANGE_OFFSET,
1735-
&range);
1736-
pci_read_config_dword(iommu->dev, cap_ptr + MMIO_MISC_OFFSET,
1737-
&misc);
17381734

17391735
if (!(iommu->cap & (1 << IOMMU_CAP_IOTLB)))
17401736
amd_iommu_iotlb_sup = false;

0 commit comments

Comments
 (0)