1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Cache dev_t values in the right structure.

Tested by:	Jay Cornwall <jay@evilrealms.net>
This commit is contained in:
Bernd Walter 2003-10-12 15:51:40 +00:00
parent faf228234c
commit 8b43efbd44
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121042

View File

@ -272,9 +272,9 @@ ugen_make_devnodes(struct ugen_softc *sc)
"%s.%d",
USBDEVNAME(sc->sc_dev), endptno);
if (sc->sc_endpoints[endptno][IN].sc != NULL)
sc->sc_endpoints[endptno][IN].sc->dev = dev;
sc->sc_endpoints[endptno][IN].dev = dev;
if (sc->sc_endpoints[endptno][OUT].sc != NULL)
sc->sc_endpoints[endptno][OUT].sc->dev = dev;
sc->sc_endpoints[endptno][OUT].dev = dev;
}
}
}
@ -298,9 +298,9 @@ ugen_destroy_devnodes(struct ugen_softc *sc)
* of the structs is populated.
*/
if (sc->sc_endpoints[endptno][IN].sc != NULL)
dev = sc->sc_endpoints[endptno][IN].sc->dev;
dev = sc->sc_endpoints[endptno][IN].dev;
else
dev = sc->sc_endpoints[endptno][OUT].sc->dev;
dev = sc->sc_endpoints[endptno][OUT].dev;
destroy_dev(dev);
}
}