Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/isa PR/50855: David Binderman: Remove redundant...
details: https://anonhg.NetBSD.org/src/rev/daf0ff5b3410
branches: trunk
changeset: 343780:daf0ff5b3410
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 26 18:14:38 2016 +0000
description:
PR/50855: David Binderman: Remove redundant code.
diffstat:
sys/arch/arc/isa/isadma_bounce.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 0ee5a1cbe7f7 -r daf0ff5b3410 sys/arch/arc/isa/isadma_bounce.c
--- a/sys/arch/arc/isa/isadma_bounce.c Fri Feb 26 18:11:11 2016 +0000
+++ b/sys/arch/arc/isa/isadma_bounce.c Fri Feb 26 18:14:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isadma_bounce.c,v 1.14 2015/06/11 08:22:08 matt Exp $ */
+/* $NetBSD: isadma_bounce.c,v 1.15 2016/02/26 18:14:38 christos Exp $ */
/* NetBSD: isadma_bounce.c,v 1.2 2000/06/01 05:49:36 thorpej Exp */
/*-
@@ -33,7 +33,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.14 2015/06/11 08:22:08 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.15 2016/02/26 18:14:38 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -251,8 +251,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;
/*
@@ -321,8 +320,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