Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/dev Fix comiple error. plum(4) is not PCI...



details:   https://anonhg.NetBSD.org/src/rev/f827cfad274e
branches:  trunk
changeset: 340795:f827cfad274e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Oct 02 09:05:33 2015 +0000

description:
Fix comiple error. plum(4) is not PCI...

diffstat:

 sys/arch/hpcmips/dev/plum.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r 15743ecbc6e1 -r f827cfad274e sys/arch/hpcmips/dev/plum.c
--- a/sys/arch/hpcmips/dev/plum.c       Fri Oct 02 09:01:23 2015 +0000
+++ b/sys/arch/hpcmips/dev/plum.c       Fri Oct 02 09:05:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plum.c,v 1.15 2015/10/02 05:22:50 msaitoh Exp $ */
+/*     $NetBSD: plum.c,v 1.16 2015/10/02 09:05:33 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plum.c,v 1.15 2015/10/02 05:22:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plum.c,v 1.16 2015/10/02 09:05:33 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -172,9 +172,6 @@
 {
        plumreg_t reg;
 
-       if ((unsigned int)o >= PCI_CONF_SIZE)
-               return (pcireg_t) -1;
-
        reg = bus_space_read_4(t, h, o);
 
        return (reg);
@@ -184,9 +181,6 @@
 plum_conf_write(bus_space_tag_t t, bus_space_handle_t h, int o, plumreg_t v)
 {
 
-       if ((unsigned int)o >= PCI_CONF_SIZE)
-               return;
-
        bus_space_write_4(t, h, o, v);
 }
 



Home | Main Index | Thread Index | Old Index