Don't call ugen_destroy_devnodes(). it is called from ugen_set_config()

which is the very next line.

Submitted by:	stefanf
MFC after: 3 days
This commit is contained in:
julian 2004-12-29 21:36:43 +00:00
parent cea6518c91
commit 3853d2c05f

View File

@ -1329,9 +1329,6 @@ ugen_do_ioctl(struct ugen_softc *sc, int endpt, u_long cmd,
case USB_SET_CONFIG:
if (!(flag & FWRITE))
return (EPERM);
#if defined(__FreeBSD__)
ugen_destroy_devnodes(sc);
#endif
err = ugen_set_config(sc, *(int *)addr);
switch (err) {
case USBD_NORMAL_COMPLETION: