git: 8109ec9d894a - main - pcm: Remove dead code from sound_modevent.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:07 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8109ec9d894a0fe7ccbbf627aeb7b111c337266e commit 8109ec9d894a0fe7ccbbf627aeb7b111c337266e Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-21 17:29:14 +0000 pcm: Remove dead code from sound_modevent. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34997 --- sys/dev/sound/pcm/sound.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 4b55e798cb80..b94ed8e943bb 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -1425,12 +1425,9 @@ static int sound_modevent(module_t mod, int type, void *data) { int ret; -#if 0 - return (midi_modevent(mod, type, data)); -#else - ret = 0; - switch(type) { + ret = 0; + switch (type) { case MOD_LOAD: pcmsg_unrhdr = new_unrhdr(1, INT_MAX, NULL); break; @@ -1447,7 +1444,6 @@ sound_modevent(module_t mod, int type, void *data) } return ret; -#endif } DEV_MODULE(sound, sound_modevent, NULL);