From e284b0b462f23ba00762e0eb3b61866c6ab2bcdb Mon Sep 17 00:00:00 2001 From: grog Date: Tue, 3 Nov 1998 06:38:58 +0000 Subject: Remove some dead code and comments --- sys/dev/vinum/vinum.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c index 4e726a2..2717f0c 100644 --- a/sys/dev/vinum/vinum.c +++ b/sys/dev/vinum/vinum.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinum.c,v 1.1.1.1 1998/09/16 05:56:21 grog Exp $ + * $Id: vinum.c,v 1.20 1998/10/29 02:15:30 grog Exp grog $ */ #define STATIC /* nothing while we're testing XXX */ @@ -164,7 +164,6 @@ vinumattach(void *dummy) ioctl_reply = NULL; /* no reply on longjmp */ } - /* Check if we have anything open. If so, return 0 (not inactive), * otherwise 1 (inactive) */ int @@ -231,16 +230,17 @@ free_vinum(int cleardrive) } #ifdef ACTUALLY_LKM_NOT_KERNEL /* stuff for LKMs */ + MOD_MISC(vinum); /* * Function called when loading the driver. */ + STATIC int vinum_load(struct lkm_table *lkmtp, int cmd) { BROKEN_GDB; -/* Debugger ("vinum_load"); */ vinumattach(NULL); return 0; /* OK */ } @@ -293,15 +293,15 @@ vinum_mod(struct lkm_table *lkmtp, int cmd, int ver) #else /* not LKM */ -STATIC int +STATIC int vinum_modevent(module_t mod, modeventtype_t type, void *unused) { - struct sync_args dummyarg = {0}; + struct sync_args dummyarg = + {0}; BROKEN_GDB; switch (type) { case MOD_LOAD: - /* Debugger ("vinum_load"); */ vinumattach(NULL); return 0; /* OK */ case MOD_UNLOAD: @@ -317,7 +317,8 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused) return 0; } -moduledata_t vinum_mod = { +moduledata_t vinum_mod = +{ "vinum", vinum_modevent, 0 @@ -525,8 +526,6 @@ vinumsize(dev_t dev) struct volume *vol; int size; -/* XXX This is bogus. We don't need to open - * a device to find its size */ vol = &VOL[VOLNO(dev)]; if (vol->state == volume_up) @@ -534,7 +533,6 @@ vinumsize(dev_t dev) else return 0; /* err on the size of conservatism */ - return size; } -- cgit v1.1