aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-07-08 18:11:54 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-07-08 18:11:54 +0000
commit69c4e2b68a588272de6ab86e302d87188bfef2a6 (patch)
tree476d41f2049a56ad153d86bc2108d69d655bc4a3
parentb72397da275b098365532133688d555b842bad4f (diff)
sound: Remove dead code in dsp_ioctl()
Sponsored by; The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/dev/sound/pcm/dsp.c8
1 files changed, 0 insertions, 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;