Date: Wed, 08 Jul 2026 18:12:35 +0000 From: Christos Margiolis <christos@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 69c4e2b68a58 - main - sound: Remove dead code in dsp_ioctl() Message-ID: <6a4e9313.3ab91.3fc261e2@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=69c4e2b68a588272de6ab86e302d87188bfef2a6 commit 69c4e2b68a588272de6ab86e302d87188bfef2a6 Author: Christos Margiolis <christos@FreeBSD.org> AuthorDate: 2026-07-08 18:11:54 +0000 Commit: Christos Margiolis <christos@FreeBSD.org> 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;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a4e9313.3ab91.3fc261e2>
