From nobody Thu Apr 21 17:30:07 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 36ADC1990B4C; Thu, 21 Apr 2022 17:30:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kkl0v6Dhtz4Wgx; Thu, 21 Apr 2022 17:30:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NSFtoJ08DvgTkSuJGWiOfJQfPHUSLpXRR1uostsLnFA=; b=EycOO9TgaSpjJRPlYdT7ubwlAyBhJf+okvyAc7KWeaqfkQIRTpZGtCd1W72Zvd63d3zRxo O/g/LtvalPfrBKL9R4PfZuYsDeQfibNmlL2E0hoff202rcTbTBeigc8EoER6ULZvBPWiTA 0a8AdUALBVDZkbHbUkMR9HvXbPea4XA3Y23v+59C3vGRQc665FLILh0e2fX75UrexPaRFF GJ6VzfhlblqdMB5UNBL39SgS3y9W9gK1wygPV0X89p998NGttqfNyZSJF/vwe4IZQjKnfi Dr9fft4Ok+xpZ4Z5p/2og14bmEPMmVY5qxL5VWb1O2/1dct1mxuUzUrydWwq0A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9A6DC5195; Thu, 21 Apr 2022 17:30:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LHU7c2002552; Thu, 21 Apr 2022 17:30:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHU7da002550; Thu, 21 Apr 2022 17:30:07 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:30:07 GMT Message-Id: <202204211730.23LHU7da002550@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8109ec9d894a - main - pcm: Remove dead code from sound_modevent. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8109ec9d894a0fe7ccbbf627aeb7b111c337266e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562209; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NSFtoJ08DvgTkSuJGWiOfJQfPHUSLpXRR1uostsLnFA=; b=tpPgswZIGBWwEcul59qiryTjYbPIpqnXctMRjsqVQXZpVvuxsKFCHEPmb39clcoeb0a8K2 sVXDwsp42YMk4JUWHrZU2/nShVLd2a7xdKkWJ50MCoH32RbvfZ5kF+A4+wCdwFgN0IsF+2 WapM/3zmnLN3Qc/b5r0fHtwXQHi9GtE8SjEiGp8ujyopNx8RIRmTf2M/lJTI7CNlKJzRuT mdhLksst5XRmtxHVZ2U1hvCGkUs9o7UD7VbpdXHA4UnMEQlkBlcuCDPxYnhoPUUzaQLaGp czaKzx17C801u6FaHmqUO+2jrMaCA1U2IX9bNwYeUsLIydfZY6E1pevBsvy0Vg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562209; a=rsa-sha256; cv=none; b=WB1yxUx62Q4pfySFPdoynbgEHeMB8o9VXzhm3j2/TjdDLOkIdrLjfLyMGavCKlhoxKilyD IjzRoEBIcFUwanOTNEQw3Qyda0fwb7t0mphbQ5pOEnOLIjtkA+JXBgBqUZM7YBSCRhOkvL DKGvAkPENZZ1ZP/ZEG73jK5cmQqiywpV/JUGoMJbKblBYwZ8inGEg0yOBpSM1FejHoQOHs qyZs483GcM8ByCpIWHJffLrXz1sVNwLE8IbY9vNjFGtUTWfb5CMLEXlmf8q77rvt/xblVI 7tts0aKjdoH3juXbEb5q0oyPaRunJxZXy6qTkJB/w7rzfOtE8pKP92RnzBd/xQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8109ec9d894a0fe7ccbbf627aeb7b111c337266e commit 8109ec9d894a0fe7ccbbf627aeb7b111c337266e Author: John Baldwin AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin 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);