From 3e019deaed5ad0687ea53ed5b5ba3336dc0be3c4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 15 Jul 2004 08:26:07 +0000 Subject: Do a pass over all modules in the kernel and make them return EOPNOTSUPP for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". --- sys/dev/utopia/utopia.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/utopia/utopia.c') diff --git a/sys/dev/utopia/utopia.c b/sys/dev/utopia/utopia.c index c648349dfe16..263f4b9f20e4 100644 --- a/sys/dev/utopia/utopia.c +++ b/sys/dev/utopia/utopia.c @@ -1550,6 +1550,8 @@ utopia_mod_init(module_t mod, int what, void *arg) UTP_WUNLOCK_LIST(); mtx_destroy(&utopia_list_mtx); break; + default: + return (EOPNOTSUPP); } return (0); } -- cgit v1.3