Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix impossible error condition.
details: https://anonhg.NetBSD.org/src/rev/8552d00fb38c
branches: trunk
changeset: 329109:8552d00fb38c
user: joerg <joerg%NetBSD.org@localhost>
date: Wed May 07 19:30:09 2014 +0000
description:
Fix impossible error condition.
diffstat:
sys/dev/pci/joy_pci.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r db263741d4e8 -r 8552d00fb38c sys/dev/pci/joy_pci.c
--- a/sys/dev/pci/joy_pci.c Wed May 07 14:26:53 2014 +0000
+++ b/sys/dev/pci/joy_pci.c Wed May 07 19:30:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: joy_pci.c,v 1.20 2012/01/30 19:41:22 drochner Exp $ */
+/* $NetBSD: joy_pci.c,v 1.21 2014/05/07 19:30:09 joerg Exp $ */
/*-
* Copyright (c) 2000, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: joy_pci.c,v 1.20 2012/01/30 19:41:22 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: joy_pci.c,v 1.21 2014/05/07 19:30:09 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -113,8 +113,8 @@
}
if (mapsize != 2) {
- if (!bus_space_subregion(sc->sc_iot, sc->sc_ioh, 1, 1,
- &sc->sc_ioh) < 0) {
+ if (bus_space_subregion(sc->sc_iot, sc->sc_ioh, 1, 1,
+ &sc->sc_ioh)) {
aprint_error_dev(self, "error mapping subregion\n");
return;
}
Home |
Main Index |
Thread Index |
Old Index