summaryrefslogtreecommitdiff
path: root/sys/dev/usb/moscom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/moscom.c')
-rw-r--r--sys/dev/usb/moscom.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/moscom.c b/sys/dev/usb/moscom.c
index d18f8550cd8..0bbc2f92ed2 100644
--- a/sys/dev/usb/moscom.c
+++ b/sys/dev/usb/moscom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: moscom.c,v 1.18 2013/11/07 12:52:42 pirofti Exp $ */
+/* $OpenBSD: moscom.c,v 1.19 2013/11/15 08:25:30 pirofti Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -280,16 +280,13 @@ int
moscom_activate(struct device *self, int act)
{
struct moscom_softc *sc = (struct moscom_softc *)self;
- int rv = 0;
switch (act) {
case DVACT_DEACTIVATE:
- if (sc->sc_subdev != NULL)
- rv = config_deactivate(sc->sc_subdev);
usbd_deactivate(sc->sc_udev);
break;
}
- return (rv);
+ return (0);
}
int