Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2026 08:15:29 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6d66485276cb - stable/15 - sound: Remove dead code in dsp_ioctl()
Message-ID:  <6a5741a1.3c1b3.4a9b0c81@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by christos:

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

commit 6d66485276cba8f49a87487a92080b3ad7b7c46c
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-07-08 18:11:54 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-07-15 08:15:25 +0000

    sound: Remove dead code in dsp_ioctl()
    
    Sponsored by;   The FreeBSD Foundation
    MFC after:      1 week
    
    (cherry picked from commit 69c4e2b68a588272de6ab86e302d87188bfef2a6)
---
 sys/dev/sound/pcm/dsp.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 60c06e27e41f..b78164d8a963 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -770,10 +770,6 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
     	case AIONWRITE:	/* how many bytes can write ? */
 		if (wrch) {
 			CHN_LOCK(wrch);
-/*
-		if (wrch && wrch->bufhard.dl)
-			while (chn_wrfeed(wrch) == 0);
-*/
 			*arg_i = sndbuf_getfree(wrch->bufsoft);
 			CHN_UNLOCK(wrch);
 		} else {
@@ -986,9 +982,6 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
     	case FIONREAD: /* get # bytes to read */
 		if (rdch) {
 			CHN_LOCK(rdch);
-/*			if (rdch && rdch->bufhard.dl)
-				while (chn_rdfeed(rdch) == 0);
-*/
 			*arg_i = sndbuf_getready(rdch->bufsoft);
 			CHN_UNLOCK(rdch);
 		} else {
@@ -1630,7 +1623,6 @@ dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
 			ret = EINVAL;
 		else {
 			struct snd_dbuf *bs;
-			/* int tmp; */
 
 			oss_count_t *oc = (oss_count_t *)arg;
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a5741a1.3c1b3.4a9b0c81>