aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-26 14:19:52 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-26 14:19:52 +0000
commitd3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b (patch)
treef45f750affeffb39e162226343b0db9a110c42ce /sys/netsmb
parented0c85e09423e29414f0693dfc22ec1f98d0e194 (diff)
downloadsrc-d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b.tar.gz
src-d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b.zip
Remove unit2minor() use from kernel code.
When I changed kern_conf.c three months ago I made device unit numbers equal to (unneeded) device minor numbers. We used to require bitshifting, because there were eight bits in the middle that were reserved for a device major number. Not very long after I turned dev2unit(), minor(), unit2minor() and minor2unit() into macro's. The unit2minor() and minor2unit() macro's were no-ops. We'd better not remove these four macro's from the kernel, because there is a lot of (external) code that may still depend on them. For now it's harmless to remove all invocations of unit2minor() and minor2unit(). Reviewed by: kib
Notes
Notes: svn path=/head/; revision=183381
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netsmb/smb_dev.c b/sys/netsmb/smb_dev.c
index 3181438b4657..c77297eec409 100644
--- a/sys/netsmb/smb_dev.c
+++ b/sys/netsmb/smb_dev.c
@@ -108,7 +108,7 @@ nsmb_dev_clone(void *arg, struct ucred *cred, char *name, int namelen,
return;
if (dev_stdclone(name, NULL, NSMB_NAME, &u) != 1)
return;
- *dev = make_dev(&nsmb_cdevsw, unit2minor(u), 0, 0, 0600,
+ *dev = make_dev(&nsmb_cdevsw, u, 0, 0, 0600,
NSMB_NAME"%d", u);
dev_ref(*dev);
}