Module Name: src Committed By: msaitoh Date: Fri Oct 2 09:05:33 UTC 2015
Modified Files: src/sys/arch/hpcmips/dev: plum.c Log Message: Fix comiple error. plum(4) is not PCI... To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hpcmips/dev/plum.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hpcmips/dev/plum.c diff -u src/sys/arch/hpcmips/dev/plum.c:1.15 src/sys/arch/hpcmips/dev/plum.c:1.16 --- src/sys/arch/hpcmips/dev/plum.c:1.15 Fri Oct 2 05:22:50 2015 +++ src/sys/arch/hpcmips/dev/plum.c Fri Oct 2 09:05:33 2015 @@ -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 @@ plum_conf_read(bus_space_tag_t t, bus_sp { 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 @@ void 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); }