diff options
| author | oster <oster@NetBSD.org> | 2005-02-12 03:44:41 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2005-02-12 03:44:41 +0000 |
| commit | be864067da4745c8644bd654a549eeed63e952ad (patch) | |
| tree | 4d00dceb2caf999ce963b4d78ec28eab36b501bb /sys/dev/raidframe/rf_diskqueue.c | |
| parent | 0b15470982186df007d537914a1bffa195ad02d9 (diff) | |
The 'next' argument to rf_CreateDiskQueueData is always NULL. Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.
Diffstat (limited to 'sys/dev/raidframe/rf_diskqueue.c')
| -rw-r--r-- | sys/dev/raidframe/rf_diskqueue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_diskqueue.c b/sys/dev/raidframe/rf_diskqueue.c index 94036f0b07a..f6c4ed51765 100644 --- a/sys/dev/raidframe/rf_diskqueue.c +++ b/sys/dev/raidframe/rf_diskqueue.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_diskqueue.c,v 1.38 2005/02/12 03:27:33 oster Exp $ */ +/* $NetBSD: rf_diskqueue.c,v 1.39 2005/02/12 03:44:41 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -66,7 +66,7 @@ ****************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.38 2005/02/12 03:27:33 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.39 2005/02/12 03:44:41 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -444,7 +444,6 @@ rf_CreateDiskQueueData(RF_IoType_t typ, RF_SectorNum_t ssect, RF_StripeNum_t parityStripeID, RF_ReconUnitNum_t which_ru, int (*wakeF) (void *, int), void *arg, - RF_DiskQueueData_t *next, RF_AccTraceEntry_t *tracerec, RF_Raid_t *raidPtr, RF_DiskQueueDataFlags_t flags, void *kb_proc, int waitflag) @@ -476,7 +475,7 @@ rf_CreateDiskQueueData(RF_IoType_t typ, RF_SectorNum_t ssect, p->which_ru = which_ru; p->CompleteFunc = wakeF; p->argument = arg; - p->next = next; + p->next = NULL; p->tracerec = tracerec; p->priority = RF_IO_NORMAL_PRIORITY; p->raidPtr = raidPtr; |
