Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Return 0, not NULL, when we mean 0.
details: https://anonhg.NetBSD.org/src/rev/2d83c93cc143
branches: trunk
changeset: 533603:2d83c93cc143
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 05 00:16:26 2002 +0000
description:
Return 0, not NULL, when we mean 0.
diffstat:
sys/dev/pci/pci.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 57319dd7cf1d -r 2d83c93cc143 sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c Thu Jul 04 23:34:28 2002 +0000
+++ b/sys/dev/pci/pci.c Fri Jul 05 00:16:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.c,v 1.67 2002/06/20 23:02:06 itojun Exp $ */
+/* $NetBSD: pci.c,v 1.68 2002/07/05 00:16:26 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.67 2002/06/20 23:02:06 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.68 2002/07/05 00:16:26 thorpej Exp $");
#include "opt_pci.h"
@@ -260,10 +260,10 @@
/* Invalid vendor ID value? */
if (PCI_VENDOR(id) == PCI_VENDOR_INVALID)
- return (NULL);
+ return (0);
/* XXX Not invalid, but we've done this ~forever. */
if (PCI_VENDOR(id) == 0)
- return (NULL);
+ return (0);
pa.pa_iot = sc->sc_iot;
pa.pa_memt = sc->sc_memt;
Home |
Main Index |
Thread Index |
Old Index