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 Style



details:   https://anonhg.NetBSD.org/src/rev/11a20e8fab31
branches:  trunk
changeset: 320866:11a20e8fab31
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 03 18:14:27 2018 +0000

description:
Style

diffstat:

 sys/arch/arm/arm32/bus_dma.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (55 lines):

diff -r 3ee4e4773d50 -r 11a20e8fab31 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Sat Mar 03 18:11:25 2018 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Sat Mar 03 18:14:27 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.104 2018/03/03 18:11:25 skrll Exp $      */
+/*     $NetBSD: bus_dma.c,v 1.105 2018/03/03 18:14:27 skrll Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include "opt_arm_bus_space.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.104 2018/03/03 18:11:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.105 2018/03/03 18:14:27 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -118,13 +118,11 @@
 
 int    _bus_dmamap_load_buffer(bus_dma_tag_t, bus_dmamap_t, void *,
            bus_size_t, struct vmspace *, int);
-static struct arm32_dma_range *
-       _bus_dma_paddr_inrange(struct arm32_dma_range *, int, paddr_t);
 
 /*
  * Check to see if the specified page is in an allowed DMA range.
  */
-inline struct arm32_dma_range *
+static inline struct arm32_dma_range *
 _bus_dma_paddr_inrange(struct arm32_dma_range *ranges, int nranges,
     bus_addr_t curaddr)
 {
@@ -528,8 +526,8 @@
 _bus_dmamap_load_mbuf(bus_dma_tag_t t, bus_dmamap_t map, struct mbuf *m0,
     int flags)
 {
+       struct mbuf *m;
        int error;
-       struct mbuf *m;
 
 #ifdef DEBUG_DMA
        printf("dmamap_load_mbuf: t=%p map=%p m0=%p f=%d\n",
@@ -672,10 +670,10 @@
 _bus_dmamap_load_uio(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio,
     int flags)
 {
-       int i, error;
        bus_size_t minlen, resid;
        struct iovec *iov;
        void *addr;
+       int i, error;
 
        /*
         * Make sure that on error condition we return "no valid mappings."



Home | Main Index | Thread Index | Old Index