* [PATCH] [PATCH net-next] powerpc: iommu: delete redundant row
@ 2022-12-07 6:53 ` wangchuanlei
0 siblings, 0 replies; 2+ messages in thread
From: wangchuanlei @ 2022-12-07 6:53 UTC (permalink / raw)
To: mpe, npiggin, christophe.leroy, aik
Cc: wangpeihui, linuxppc-dev, linux-kernel, wangchuanlei
Signed-off-by: wangchuanlei <wangchuanlei@inspur.com>
---
arch/powerpc/kernel/iommu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index caebe1431596..dd010a733404 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -953,7 +953,6 @@ void iommu_free_coherent(struct iommu_table *tbl, size_t size,
size = PAGE_ALIGN(size);
nio_pages = size >> tbl->it_page_shift;
iommu_free(tbl, dma_handle, nio_pages);
- size = PAGE_ALIGN(size);
free_pages((unsigned long)vaddr, get_order(size));
}
}
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] [PATCH net-next] powerpc: iommu: delete redundant row
@ 2022-12-07 6:53 ` wangchuanlei
0 siblings, 0 replies; 2+ messages in thread
From: wangchuanlei @ 2022-12-07 6:53 UTC (permalink / raw)
To: mpe, npiggin, christophe.leroy, aik
Cc: wangchuanlei, linuxppc-dev, linux-kernel, wangpeihui
Signed-off-by: wangchuanlei <wangchuanlei@inspur.com>
---
arch/powerpc/kernel/iommu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index caebe1431596..dd010a733404 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -953,7 +953,6 @@ void iommu_free_coherent(struct iommu_table *tbl, size_t size,
size = PAGE_ALIGN(size);
nio_pages = size >> tbl->it_page_shift;
iommu_free(tbl, dma_handle, nio_pages);
- size = PAGE_ALIGN(size);
free_pages((unsigned long)vaddr, get_order(size));
}
}
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-07 8:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 6:53 [PATCH] [PATCH net-next] powerpc: iommu: delete redundant row wangchuanlei
2022-12-07 6:53 ` wangchuanlei
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.