git: 0ed1db1aad5f - main - arm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 00:27:59 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0ed1db1aad5f529b32cf45848b842b374406a5be commit 0ed1db1aad5f529b32cf45848b842b374406a5be Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 00:25:14 +0000 arm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR. --- sys/arm/arm/busdma_machdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c index a754cb13ddc5..ccf593b11aa5 100644 --- a/sys/arm/arm/busdma_machdep.c +++ b/sys/arm/arm/busdma_machdep.c @@ -535,11 +535,12 @@ bus_dma_tag_set_domain(bus_dma_tag_t dmat, int domain) int bus_dma_tag_destroy(bus_dma_tag_t dmat) { - bus_dma_tag_t dmat_copy; +#ifdef KTR + bus_dma_tag_t dmat_copy = dmat; +#endif int error; error = 0; - dmat_copy = dmat; if (dmat != NULL) { if (dmat->map_count != 0) {