From 9999d2cb9fdde6cd68c82ea052e38e13c48306eb Mon Sep 17 00:00:00 2001 From: Hiten Pandya Date: Tue, 4 May 2004 12:06:44 +0000 Subject: [PATCH] Just pass NULL to sync(), no need to create a `dummyarg'. Noticed-by: LINT --- sys/dev/raid/vinum/vinum.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/raid/vinum/vinum.c b/sys/dev/raid/vinum/vinum.c index ef9ca7bdeb..4de8f87c63 100644 --- a/sys/dev/raid/vinum/vinum.c +++ b/sys/dev/raid/vinum/vinum.c @@ -37,7 +37,7 @@ * * $Id: vinum.c,v 1.33 2001/01/09 06:19:15 grog Exp grog $ * $FreeBSD: src/sys/dev/vinum/vinum.c,v 1.38.2.3 2003/01/07 12:14:16 joerg Exp $ - * $DragonFly: src/sys/dev/raid/vinum/vinum.c,v 1.8 2003/08/07 21:17:09 dillon Exp $ + * $DragonFly: src/sys/dev/raid/vinum/vinum.c,v 1.9 2004/05/04 12:06:44 hmp Exp $ */ #define STATIC static /* nothing while we're testing XXX */ @@ -238,8 +238,6 @@ free_vinum(int cleardrive) STATIC int vinum_modevent(module_t mod, modeventtype_t type, void *unused) { - struct sync_args dummyarg = {0}; - switch (type) { case MOD_LOAD: vinumattach(NULL); @@ -248,7 +246,7 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused) if (!vinum_inactive(1)) /* is anything open? */ return EBUSY; /* yes, we can't do it */ vinum_conf.flags |= VF_STOPPING; /* note that we want to stop */ - sync(&dummyarg); /* write out buffers */ + sync(NULL); /* write out buffers */ free_vinum(0); /* clean up */ #ifdef VINUMDEBUG if (total_malloced) { -- 2.41.0