Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Be a bit more defensive.
details: https://anonhg.NetBSD.org/src/rev/5478f61db617
branches: trunk
changeset: 504309:5478f61db617
user: matt <matt%NetBSD.org@localhost>
date: Tue Feb 27 05:16:33 2001 +0000
description:
Be a bit more defensive.
diffstat:
sys/arch/macppc/dev/gpio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r c86117d201ac -r 5478f61db617 sys/arch/macppc/dev/gpio.c
--- a/sys/arch/macppc/dev/gpio.c Tue Feb 27 05:15:03 2001 +0000
+++ b/sys/arch/macppc/dev/gpio.c Tue Feb 27 05:16:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.1 2001/02/27 05:15:03 matt Exp $ */
+/* $NetBSD: gpio.c,v 1.2 2001/02/27 05:16:33 matt Exp $ */
/*-
* Copyright (C) 1998 Internet Research Institute, Inc.
@@ -173,7 +173,8 @@
int rv = 0;
#if NADB > 0
- rv = adb_intr(adb_cd.cd_devs[0]);
+ if (adb_cd.cd_devs[0] != NULL)
+ rv = adb_intr(adb_cd.cd_devs[0]);
#endif
return rv;
Home |
Main Index |
Thread Index |
Old Index