OF_finddevice uses -1 to signal error. Make it zero to match what

the rest of the code expects the error value to be.
This commit is contained in:
uwe 2001-06-26 19:37:54 +00:00
parent e0e53bb8fe
commit 67a5f8fc0a
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.149 2001/05/26 10:22:32 pk Exp $ */
/* $NetBSD: autoconf.c,v 1.150 2001/06/26 19:37:54 uwe Exp $ */
/*
* Copyright (c) 1996
@ -1265,6 +1265,8 @@ makememarr(ap, max, which)
case PROM_OPENFIRM:
node = OF_finddevice("/memory");
if (node == -1)
node = 0;
case_common:
if (node == 0)