aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-17 17:16:53 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-17 17:16:53 +0000
commitf3732fd15b5a493a090a0453f937a78949c65f7d (patch)
treefe8b297144afd6d6f7db41275c72cb5eb663ec02 /sys/netsmb
parentc0d431fe315475c5fe50084db455416148d57914 (diff)
downloadsrc-f3732fd15b5a493a090a0453f937a78949c65f7d.tar.gz
src-f3732fd15b5a493a090a0453f937a78949c65f7d.zip
Second half of the dev_t cleanup.
The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc.
Notes
Notes: svn path=/head/; revision=130640
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netsmb/smb_dev.c b/sys/netsmb/smb_dev.c
index 78a60680f925..a69d0f0d100b 100644
--- a/sys/netsmb/smb_dev.c
+++ b/sys/netsmb/smb_dev.c
@@ -103,7 +103,7 @@ nsmb_dev_clone(void *arg, char *name, int namelen, struct cdev **dev)
{
int u;
- if (*dev != NODEV)
+ if (*dev != NULL)
return;
if (dev_stdclone(name, NULL, NSMB_NAME, &u) != 1)
return;
@@ -397,7 +397,7 @@ smb_dev2share(int fd, int mode, struct smb_cred *scred,
return EBADF;
}
dev = vn_todev(vp);
- if (dev == NODEV) {
+ if (dev == NULL) {
fdrop(fp, curthread);
return EBADF;
}