Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/isa PR/50858: David Binderman: Remove redun...



details:   https://anonhg.NetBSD.org/src/rev/7f4f9a7a8678
branches:  trunk
changeset: 813925:7f4f9a7a8678
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 26 18:17:39 2016 +0000

description:
PR/50858: David Binderman: Remove redundant code.

diffstat:

 sys/arch/powerpc/isa/isadma_machdep.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 3ab102af4f70 -r 7f4f9a7a8678 sys/arch/powerpc/isa/isadma_machdep.c
--- a/sys/arch/powerpc/isa/isadma_machdep.c     Fri Feb 26 18:16:51 2016 +0000
+++ b/sys/arch/powerpc/isa/isadma_machdep.c     Fri Feb 26 18:17:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isadma_machdep.c,v 1.9 2013/06/09 12:52:33 kiyohara Exp $      */
+/*     $NetBSD: isadma_machdep.c,v 1.10 2016/02/26 18:17:39 christos Exp $     */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isadma_machdep.c,v 1.9 2013/06/09 12:52:33 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isadma_machdep.c,v 1.10 2016/02/26 18:17:39 christos Exp $");
 
 #define ISA_DMA_STATS
 
@@ -296,8 +296,7 @@
         * and we can bounce, we will.
         */
        error = _bus_dmamap_load(t, map, buf, buflen, p, flags);
-       if (error == 0 ||
-           (error != 0 && (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0))
+       if (error == 0 || (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0)
                return (error);
 
        /*
@@ -368,8 +367,7 @@
         * and we can bounce, we will.
         */
        error = _bus_dmamap_load_mbuf(t, map, m0, flags);
-       if (error == 0 ||
-           (error != 0 && (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0))
+       if (error == 0 || (cookie->id_flags & ID_MIGHT_NEED_BOUNCE) == 0)
                return (error);
 
        /*



Home | Main Index | Thread Index | Old Index