Module Name: src Committed By: skrll Date: Sat Feb 22 08:22:10 UTC 2020
Modified Files: src/sys/arch/arm/arm32: bus_dma.c Log Message: Fix previous for _ARM32_NEED_BUS_DMA_BOUNCE To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/arch/arm/arm32/bus_dma.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/arm32/bus_dma.c diff -u src/sys/arch/arm/arm32/bus_dma.c:1.119 src/sys/arch/arm/arm32/bus_dma.c:1.120 --- src/sys/arch/arm/arm32/bus_dma.c:1.119 Fri Feb 21 23:27:06 2020 +++ src/sys/arch/arm/arm32/bus_dma.c Sat Feb 22 08:22:09 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.119 2020/02/21 23:27:06 maya Exp $ */ +/* $NetBSD: bus_dma.c,v 1.120 2020/02/22 08:22:09 skrll Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ #include "opt_cputypes.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.119 2020/02/21 23:27:06 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.120 2020/02/22 08:22:09 skrll Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -315,6 +315,7 @@ _bus_dmamap_create(bus_dma_tag_t t, bus_ { struct arm32_bus_dmamap *map; void *mapstore; + int error = 0; #ifdef DEBUG_DMA printf("dmamap_create: t=%p size=%lx nseg=%x msegsz=%lx boundary=%lx" @@ -357,7 +358,6 @@ _bus_dmamap_create(bus_dma_tag_t t, bus_ struct arm32_bus_dma_cookie *cookie; int cookieflags; void *cookiestore; - int error; cookieflags = 0;