Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2022 00:20:57 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: aee33ff46759 - stable/13 - pcm: Remove dead code from sound_modevent.
Message-ID:  <202205200020.24K0KvNg071782@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=aee33ff4675935881190f28c154c2c804c73f826

commit aee33ff4675935881190f28c154c2c804c73f826
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-19 21:32:56 +0000

    pcm: Remove dead code from sound_modevent.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D34997
    
    (cherry picked from commit 8109ec9d894a0fe7ccbbf627aeb7b111c337266e)
---
 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 dcc2180fe88a..a9d24703dbb0 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -1427,12 +1427,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;
@@ -1449,7 +1446,6 @@ sound_modevent(module_t mod, int type, void *data)
 	}
 
 	return ret;
-#endif
 }
 
 DEV_MODULE(sound, sound_modevent, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205200020.24K0KvNg071782>