Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 fix operator precedence.



details:   https://anonhg.NetBSD.org/src/rev/7086aa34a550
branches:  trunk
changeset: 341244:7086aa34a550
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 27 18:49:26 2015 +0000

description:
fix operator precedence.

diffstat:

 sys/arch/x86/x86/bus_dma.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 42f30e33432a -r 7086aa34a550 sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c        Tue Oct 27 18:19:05 2015 +0000
+++ b/sys/arch/x86/x86/bus_dma.c        Tue Oct 27 18:49:26 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.73 2015/10/27 18:19:05 christos Exp $    */
+/*     $NetBSD: bus_dma.c,v 1.74 2015/10/27 18:49:26 christos Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2007 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.73 2015/10/27 18:19:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.74 2015/10/27 18:49:26 christos Exp $");
 
 /*
  * The following is included because _bus_dma_uiomove is derived from
@@ -292,7 +292,7 @@
        mapsize = sizeof(struct x86_bus_dmamap) +
            (sizeof(bus_dma_segment_t) * (nsegments - 1));
        if ((mapstore = malloc(mapsize, M_DMAMAP, M_ZERO |
-           (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
+           ((flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK))) == NULL)
                return (ENOMEM);
 
        map = (struct x86_bus_dmamap *)mapstore;
@@ -331,7 +331,7 @@
         * Allocate our cookie.
         */
        if ((cookiestore = malloc(cookiesize, M_DMAMAP, M_ZERO |
-           (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) {
+           ((flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK))) == NULL) {
                error = ENOMEM;
                goto out;
        }



Home | Main Index | Thread Index | Old Index