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 Elischer 2004-12-29 21:36:43 +00:00
parent a51d79c1d3
commit 3331831fd8

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: