The branch main has been updated by christos:

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

commit 69c4e2b68a588272de6ab86e302d87188bfef2a6
Author:     Christos Margiolis <[email protected]>
AuthorDate: 2026-07-08 18:11:54 +0000
Commit:     Christos Margiolis <[email protected]>
CommitDate: 2026-07-08 18:11:54 +0000

    sound: Remove dead code in dsp_ioctl()
    
    Sponsored by;   The FreeBSD Foundation
    MFC after:      1 week
---
 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 da8bf485bc9b..0a5063410d24 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;
 

Reply via email to