Eliminate 'WARNING: "streams" is usurping "streams"'s cdevsw[]' messages

at boot
This commit is contained in:
newton 1999-07-30 12:39:49 +00:00
parent 0b514b0abf
commit 206f542fa4

View File

@ -29,9 +29,10 @@
* Stolen from NetBSD /sys/compat/svr4/svr4_net.c. Pseudo-device driver * Stolen from NetBSD /sys/compat/svr4/svr4_net.c. Pseudo-device driver
* skeleton produced from /usr/share/examples/drivers/make_pseudo_driver.sh * skeleton produced from /usr/share/examples/drivers/make_pseudo_driver.sh
* in 3.0-980524-SNAP then hacked a bit (but probably not enough :-). * in 3.0-980524-SNAP then hacked a bit (but probably not enough :-).
*
* $Id$
*/ */
#include "streams.h" /* generated file.. defines NSTREAMS */ #include "streams.h" /* generated file.. defines NSTREAMS */
#include "opt_devfs.h" #include "opt_devfs.h"
#include <sys/param.h> #include <sys/param.h>
@ -390,7 +391,6 @@ streams_drvinit(void *unused)
int unit; int unit;
sc_p scp = sca[unit]; sc_p scp = sca[unit];
cdevsw_add(&streams_cdevsw);
for (unit = 0; unit < NSTREAMS; unit++) { for (unit = 0; unit < NSTREAMS; unit++) {
/* /*
* Allocate storage for this instance . * Allocate storage for this instance .