diff options
author | grog <grog@FreeBSD.org> | 1998-11-03 06:38:58 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1998-11-03 06:38:58 +0000 |
commit | e284b0b462f23ba00762e0eb3b61866c6ab2bcdb (patch) | |
tree | 91b458019ca09eb45d1d7b6aee600206280d9ad0 /sys/dev | |
parent | 1d2a8a5a9cc3052556d212d5dd62dddc29dc53be (diff) | |
download | FreeBSD-src-e284b0b462f23ba00762e0eb3b61866c6ab2bcdb.zip FreeBSD-src-e284b0b462f23ba00762e0eb3b61866c6ab2bcdb.tar.gz |
Remove some dead code and comments
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/vinum/vinum.c | 18 |
1 files changed, 8 insertions, 10 deletions
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; } |