diff options
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinum.c | 2 | ||||
-rw-r--r-- | sys/dev/vinum/vinumconfig.c | 4 | ||||
-rw-r--r-- | sys/dev/vinum/vinumio.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c index 3306c96..062176b 100644 --- a/sys/dev/vinum/vinum.c +++ b/sys/dev/vinum/vinum.c @@ -522,7 +522,7 @@ vinum_clone(void *arg, char *name, int namelen, struct cdev ** dev) struct volume *vol; int i; - if (*dev != NODEV) + if (*dev != NULL) return; if (strncmp(name, "vinum/", sizeof("vinum/") - 1) != 0) return; diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c index 8c7e038..989af88 100644 --- a/sys/dev/vinum/vinumconfig.c +++ b/sys/dev/vinum/vinumconfig.c @@ -476,7 +476,7 @@ get_empty_drive(void) bzero(drive, sizeof(struct drive)); drive->driveno = driveno; /* put number in structure */ drive->flags |= VF_NEWBORN; /* newly born drive */ - drive->dev = NODEV; + drive->dev = NULL; strcpy(drive->devicename, "unknown"); /* and make the name ``unknown'' */ return driveno; /* return the index */ } @@ -595,7 +595,7 @@ free_drive(struct drive *drive) close_locked_drive(drive); /* close it */ if (drive->freelist) Free(drive->freelist); - if (drive->dev != NODEV) + if (drive->dev != NULL) dev_rel(drive->dev); bzero(drive, sizeof(struct drive)); /* this also sets drive_unallocated */ unlockdrive(drive); diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index e77291e..7edde1d 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -56,7 +56,7 @@ open_drive(struct drive *drive, struct thread *td, int verbose) return EBUSY; /* don't do it again */ drive->dev = getdiskbyname(drive->devicename); - if (drive->dev == NODEV) /* didn't find anything */ + if (drive->dev == NULL) /* didn't find anything */ return ENOENT; dev_ref(drive->dev); |