Date: Sat, 9 Apr 2022 00:27:59 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0ed1db1aad5f - main - arm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR. Message-ID: <202204090027.2390Rx5w056741@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090027.2390Rx5w056741>