From 8fe25da9d7762dba747313181158c50980ec44e0 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 23 Jun 2006 06:27:13 +0000 Subject: In a drivers activate() entry point, if on DVACT_DEACTIVATE it does something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@ --- sys/dev/usb/if_cue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/usb/if_cue.c') diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 5e36c6cc19f..96657878929 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cue.c,v 1.30 2006/03/25 22:41:47 djm Exp $ */ +/* $OpenBSD: if_cue.c,v 1.31 2006/06/23 06:27:11 miod Exp $ */ /* $NetBSD: if_cue.c,v 1.40 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -622,7 +622,6 @@ cue_activate(device_ptr_t self, enum devact act) switch (act) { case DVACT_ACTIVATE: - return (EOPNOTSUPP); break; case DVACT_DEACTIVATE: -- cgit v1.2.3