Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Fix previous for _ARM32_NEED_BUS_DMA_BOUNCE



details:   https://anonhg.NetBSD.org/src/rev/495f40ca5b7b
branches:  trunk
changeset: 1007513:495f40ca5b7b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 22 08:22:09 2020 +0000

description:
Fix previous for _ARM32_NEED_BUS_DMA_BOUNCE

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 9f07df07853b -r 495f40ca5b7b sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Sat Feb 22 08:15:09 2020 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Sat Feb 22 08:22:09 2020 +0000
@@ -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 @@
 {
        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 @@
        struct arm32_bus_dma_cookie *cookie;
        int cookieflags;
        void *cookiestore;
-       int error;
 
        cookieflags = 0;
 



Home | Main Index | Thread Index | Old Index