From 5736d8f544c5b8ee40392412962b8ae8068f4166 Mon Sep 17 00:00:00 2001 From: gwr Date: Fri, 13 Dec 1996 19:50:10 +0000 Subject: [PATCH] Kill some dead code. --- sys/arch/sun3/dev/idprom.c | 38 +------------------------------------ sys/arch/sun3/sun3/idprom.c | 38 +------------------------------------ 2 files changed, 2 insertions(+), 74 deletions(-) diff --git a/sys/arch/sun3/dev/idprom.c b/sys/arch/sun3/dev/idprom.c index 70c9d2f2892f..e43444def54c 100644 --- a/sys/arch/sun3/dev/idprom.c +++ b/sys/arch/sun3/dev/idprom.c @@ -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. diff --git a/sys/arch/sun3/sun3/idprom.c b/sys/arch/sun3/sun3/idprom.c index 70c9d2f2892f..e43444def54c 100644 --- a/sys/arch/sun3/sun3/idprom.c +++ b/sys/arch/sun3/sun3/idprom.c @@ -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.