Kill some dead code.

This commit is contained in:
gwr 1996-12-13 19:50:10 +00:00
parent 6d6e6e45e0
commit 5736d8f544
2 changed files with 2 additions and 74 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: idprom.c,v 1.13 1996/11/20 18:56:50 gwr Exp $ */
/* $NetBSD: idprom.c,v 1.14 1996/12/13 19:50:10 gwr Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,42 +57,6 @@ extern long hostid; /* in kern_sysctl.c */
*/
struct idprom identity_prom;
int idpromopen(dev, oflags, devtype, p)
dev_t dev;
int oflags;
int devtype;
struct proc *p;
{
return 0;
}
int idpromclose(dev, fflag, devtype, p)
dev_t dev;
int fflag;
int devtype;
struct proc *p;
{
return 0;
}
idpromread(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
int ioflag;
{
int error, unit, length;
error = 0;
while (uio->uio_resid > 0 && error == 0) {
if (uio->uio_offset >= IDPROM_SIZE)
break; /* past or at end */
length = min(uio->uio_resid,
(IDPROM_SIZE - (int)uio->uio_offset));
error = uiomove((caddr_t) &identity_prom, length, uio);
}
return error;
}
/*
* This is called very early during startup to
* get a copy of the idprom from control space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: idprom.c,v 1.13 1996/11/20 18:56:50 gwr Exp $ */
/* $NetBSD: idprom.c,v 1.14 1996/12/13 19:50:10 gwr Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,42 +57,6 @@ extern long hostid; /* in kern_sysctl.c */
*/
struct idprom identity_prom;
int idpromopen(dev, oflags, devtype, p)
dev_t dev;
int oflags;
int devtype;
struct proc *p;
{
return 0;
}
int idpromclose(dev, fflag, devtype, p)
dev_t dev;
int fflag;
int devtype;
struct proc *p;
{
return 0;
}
idpromread(dev, uio, ioflag)
dev_t dev;
struct uio *uio;
int ioflag;
{
int error, unit, length;
error = 0;
while (uio->uio_resid > 0 && error == 0) {
if (uio->uio_offset >= IDPROM_SIZE)
break; /* past or at end */
length = min(uio->uio_resid,
(IDPROM_SIZE - (int)uio->uio_offset));
error = uiomove((caddr_t) &identity_prom, length, uio);
}
return error;
}
/*
* This is called very early during startup to
* get a copy of the idprom from control space.