Eliminate bogus use of makedev(): rather than synthesize the dev_t, use

our already cached copy.
This commit is contained in:
Poul-Henning Kamp 2003-09-26 09:05:57 +00:00
parent 02b63ceaff
commit ff2cf8a51d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120461

View File

@ -1933,8 +1933,7 @@ digi_detach(device_t dev)
digi_free_state(sc);
destroy_dev(makedev(CDEV_MAJOR,
(sc->res.unit << 16) | CTRL_DEV));
destroy_dev(sc->res.ctldev);
if (sc->res.mem != NULL) {
bus_release_resource(dev, SYS_RES_MEMORY, sc->res.mrid,