diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-31 16:20:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-31 16:20:49 +0000 |
commit | 3ef2e36851e7c0ceef5ff95331a8e7542213632f (patch) | |
tree | 89d74afdeac72a4a8b2a6974ea258b2048635088 | |
parent | a153d7f94bbc42ed019303f5194578cb74d6e79d (diff) |
activate functions should not return EOPNOTSUPP
-rw-r--r-- | sys/dev/usb/ubt.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/dev/usb/ubt.c b/sys/dev/usb/ubt.c index 27d700b777b..21482e8338c 100644 --- a/sys/dev/usb/ubt.c +++ b/sys/dev/usb/ubt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubt.c,v 1.17 2010/07/02 02:40:16 blambert Exp $ */ +/* $OpenBSD: ubt.c,v 1.18 2010/08/31 16:20:48 deraadt Exp $ */ /* $NetBSD: ubt.c,v 1.35 2008/07/28 14:19:26 drochner Exp $ */ /*- @@ -499,24 +499,15 @@ int ubt_activate(struct device *self, int act) { struct ubt_softc *sc = (struct ubt_softc *)self; - int error = 0; - - DPRINTFN(1, "sc=%p, act=%d\n", sc, act); switch (act) { case DVACT_ACTIVATE: break; - case DVACT_DEACTIVATE: sc->sc_dying = 1; break; - - default: - error = EOPNOTSUPP; - break; } - - return error; + return (0); } /* set ISOC configuration */ |