summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uipaq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uipaq.c')
-rw-r--r--sys/dev/usb/uipaq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/uipaq.c b/sys/dev/usb/uipaq.c
index 818c7dca247..e2a2ed8fdd0 100644
--- a/sys/dev/usb/uipaq.c
+++ b/sys/dev/usb/uipaq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipaq.c,v 1.22 2013/11/07 12:07:18 pirofti Exp $ */
+/* $OpenBSD: uipaq.c,v 1.23 2013/11/15 08:25:31 pirofti Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -356,16 +356,13 @@ int
uipaq_activate(struct device *self, int act)
{
struct uipaq_softc *sc = (struct uipaq_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