Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vax Remove an unneccessary reference to cf_unit.



details:   https://anonhg.NetBSD.org/src/rev/3e4a2adf9da3
branches:  trunk
changeset: 482039:3e4a2adf9da3
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sat Feb 12 15:48:34 2000 +0000

description:
Remove an unneccessary reference to cf_unit.

diffstat:

 sys/arch/vax/vax/autoconf.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 0e5b811de6d9 -r 3e4a2adf9da3 sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c       Sat Feb 12 15:05:48 2000 +0000
+++ b/sys/arch/vax/vax/autoconf.c       Sat Feb 12 15:48:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.45 1999/10/23 14:56:05 ragge Exp $      */
+/*     $NetBSD: autoconf.c,v 1.46 2000/02/12 15:48:34 ragge Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -126,11 +126,7 @@
        struct cfdata *cf;
        void    *aux;
 {
-       if (cf->cf_unit == 0 &&
-           strcmp(cf->cf_driver->cd_name, "mainbus") == 0)
-               return 1; /* First (and only) mainbus */
-
-       return (0);
+       return 1; /* First (and only) mainbus */
 }
 
 void



Home | Main Index | Thread Index | Old Index