From 06892092ba26091c155e85746e37809d5ac99406 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 7 May 2014 19:30:09 +0000 Subject: [PATCH] Fix impossible error condition. --- sys/dev/pci/joy_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/joy_pci.c b/sys/dev/pci/joy_pci.c index 0b8c390e8b08..259536c13716 100644 --- a/sys/dev/pci/joy_pci.c +++ b/sys/dev/pci/joy_pci.c @@ -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 -__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 #include @@ -113,8 +113,8 @@ joy_pci_attach(device_t parent, device_t self, void *aux) } 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; }