Return EOPNOTSUPP for unknown module events.

PR:		kern/18473
Submitted by:	"Jeroen C. van Gelderen" <gelderen@systemics.com>
This commit is contained in:
Ian Dowse 2001-11-17 00:46:08 +00:00
parent 101acc33fa
commit 55a13f7dd0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86479
2 changed files with 8 additions and 2 deletions

View File

@ -372,8 +372,11 @@ ccd_modevent(module_t mod, int type, void *data)
error = EOPNOTSUPP;
break;
default: /* MOD_SHUTDOWN etc */
case MOD_SHUTDOWN:
break;
default:
error = EOPNOTSUPP;
}
return (error);
}

View File

@ -372,8 +372,11 @@ ccd_modevent(module_t mod, int type, void *data)
error = EOPNOTSUPP;
break;
default: /* MOD_SHUTDOWN etc */
case MOD_SHUTDOWN:
break;
default:
error = EOPNOTSUPP;
}
return (error);
}