Pretend we can detach. Then we can at least the detach the device
if the attach fails in the middle.
This commit is contained in:
parent
8808155fa6
commit
4357bf2625
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_aue.c,v 1.12 2000/01/17 13:23:05 augustss Exp $ */
|
||||
/* $NetBSD: if_aue.c,v 1.13 2000/01/18 19:46:55 augustss Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
|
@ -911,9 +911,8 @@ USB_DETACH(aue)
|
|||
* to the ifnet.
|
||||
*/
|
||||
if_delref(sc->aue_ec.ec_if);
|
||||
return (0);
|
||||
#else
|
||||
return (EBUSY);
|
||||
return (0);
|
||||
#endif
|
||||
|
||||
#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_cue.c,v 1.1 2000/01/17 17:12:20 augustss Exp $ */
|
||||
/* $NetBSD: if_cue.c,v 1.2 2000/01/18 19:46:55 augustss Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
|
@ -685,9 +685,8 @@ USB_DETACH(cue)
|
|||
* to the ifnet.
|
||||
*/
|
||||
if_delref(sc->cue_ec.ec_if);
|
||||
return (0);
|
||||
#else
|
||||
return (EBUSY);
|
||||
return (0);
|
||||
#endif
|
||||
|
||||
#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_kue.c,v 1.2 2000/01/17 13:25:22 augustss Exp $ */
|
||||
/* $NetBSD: if_kue.c,v 1.3 2000/01/18 19:46:55 augustss Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999, 2000
|
||||
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
|
||||
|
@ -742,9 +742,8 @@ USB_DETACH(kue)
|
|||
* to the ifnet.
|
||||
*/
|
||||
if_delref(sc->kue_ec.ec_if);
|
||||
return (0);
|
||||
#else
|
||||
return (EBUSY);
|
||||
return (0);
|
||||
#endif
|
||||
|
||||
#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
|
||||
|
|
Loading…
Reference in New Issue