diff --git a/sys/dev/usb/moscom.c b/sys/dev/usb/moscom.c index 648b7269e2ea..0115d09e96f9 100644 --- a/sys/dev/usb/moscom.c +++ b/sys/dev/usb/moscom.c @@ -1,4 +1,4 @@ -/* $NetBSD: moscom.c,v 1.2 2009/09/23 19:07:19 plunky Exp $ */ +/* $NetBSD: moscom.c,v 1.3 2009/11/12 19:53:14 dyoung Exp $ */ /* $OpenBSD: moscom.c,v 1.11 2007/10/11 18:33:14 deraadt Exp $ */ /* @@ -18,7 +18,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: moscom.c,v 1.2 2009/09/23 19:07:19 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: moscom.c,v 1.3 2009/11/12 19:53:14 dyoung Exp $"); #include #include @@ -300,19 +300,14 @@ int moscom_activate(device_t self, enum devact act) { struct moscom_softc *sc = device_private(self); - int rv = 0; switch (act) { - case DVACT_ACTIVATE: - return (EOPNOTSUPP); - case DVACT_DEACTIVATE: - if (sc->sc_subdev != NULL) - rv = config_deactivate(sc->sc_subdev); sc->sc_dying = 1; - break; + return 0; + default: + return EOPNOTSUPP; } - return (rv); } int