diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 21:32:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 21:32:15 +0000 |
commit | 39fb4aef3d058a6d6726a689f365d2c8a3333178 (patch) | |
tree | 3b153134583d6d3d0d078ae9b3fb771be33195be /sys/dev/snp | |
parent | ad925439e08646e188eb1c0e0be355f0685c8739 (diff) | |
download | FreeBSD-src-39fb4aef3d058a6d6726a689f365d2c8a3333178.zip FreeBSD-src-39fb4aef3d058a6d6726a689f365d2c8a3333178.tar.gz |
Device megapatch 5/6:
Remove the unused second argument from udev2dev().
Convert all remaining users of makedev() to use udev2dev(). The
semantic difference is that udev2dev() will only locate a pre-existing
dev_t, it will not line makedev() create a new one.
Apart from the tiny well controlled windown in D_PSEUDO drivers,
there should no longer be any "anonymous" dev_t's in the system
now, only dev_t's created with make_dev() and make_dev_alias()
Diffstat (limited to 'sys/dev/snp')
-rw-r--r-- | sys/dev/snp/snp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 543a724..6e4eb9a 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -500,7 +500,7 @@ snpioctl(dev, cmd, data, flags, td) snp = dev->si_drv1; switch (cmd) { case SNPSTTY: - tdev = udev2dev(*((udev_t *)data), 0); + tdev = udev2dev(*((udev_t *)data)); if (tdev == NODEV) return (snp_down(snp)); |