Skip to content

Commit ce0fd38

Browse files
mripardjoergroedel
authored andcommitted
iommu/sun50i: Remove unused variable
The pte_dma variable in the unmap callback is set but never used. Remove it. Fixes: 4100b8c ("iommu: Add Allwinner H6 IOMMU driver") Reported-by: kernel test robot <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent bc8784f commit ce0fd38

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/iommu/sun50i-iommu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ static size_t sun50i_iommu_unmap(struct iommu_domain *domain, unsigned long iova
556556
{
557557
struct sun50i_iommu_domain *sun50i_domain = to_sun50i_domain(domain);
558558
phys_addr_t pt_phys;
559-
dma_addr_t pte_dma;
560559
u32 *pte_addr;
561560
u32 dte;
562561

@@ -566,7 +565,6 @@ static size_t sun50i_iommu_unmap(struct iommu_domain *domain, unsigned long iova
566565

567566
pt_phys = sun50i_dte_get_pt_address(dte);
568567
pte_addr = (u32 *)phys_to_virt(pt_phys) + sun50i_iova_get_pte_index(iova);
569-
pte_dma = pt_phys + sun50i_iova_get_pte_index(iova) * PT_ENTRY_SIZE;
570568

571569
if (!sun50i_pte_is_page_valid(*pte_addr))
572570
return 0;

0 commit comments

Comments
 (0)