Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xscale Skip a tautologic check if we know it is...
details: https://anonhg.NetBSD.org/src/rev/8d294a946549
branches: trunk
changeset: 793972:8d294a946549
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Mar 02 13:23:16 2014 +0000
description:
Skip a tautologic check if we know it is one.
diffstat:
sys/arch/arm/xscale/i80321_space.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a040a7c3d0fa -r 8d294a946549 sys/arch/arm/xscale/i80321_space.c
--- a/sys/arch/arm/xscale/i80321_space.c Sun Mar 02 13:22:32 2014 +0000
+++ b/sys/arch/arm/xscale/i80321_space.c Sun Mar 02 13:23:16 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i80321_space.c,v 1.13 2011/07/01 20:32:51 dyoung Exp $ */
+/* $NetBSD: i80321_space.c,v 1.14 2014/03/02 13:23:16 joerg Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i80321_space.c,v 1.13 2011/07/01 20:32:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i80321_space.c,v 1.14 2014/03/02 13:23:16 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -291,7 +291,10 @@
paddr_t pa, endpa, physbase;
#ifdef I80321_USE_DIRECT_WIN
- if (bpa >= (VERDE_OUT_DIRECT_WIN_BASE) &&
+ if (
+#if VERDE_OUT_DIRECT_WIN_BASE != 0
+ bpa >= (VERDE_OUT_DIRECT_WIN_BASE) &&
+#endif
bpa < (VERDE_OUT_DIRECT_WIN_BASE + VERDE_OUT_DIRECT_WIN_SIZE)) {
busbase = VERDE_OUT_DIRECT_WIN_BASE;
physbase = VERDE_OUT_DIRECT_WIN_BASE;
Home |
Main Index |
Thread Index |
Old Index