diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-06-26 07:42:05 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-06-26 07:42:05 +0000 |
commit | 0ee25600ffe80d3ecab1c000e42b62c25bd2f714 (patch) | |
tree | f6b6f8e6821dfe935b9530d66d8cb8f111f377cd /usr.bin/sndiod | |
parent | 030f44ccdc950db917b501609470abb89d00d036 (diff) |
No need to initialize slot->mix.weight as it's recalculated and
overwritten in dev_mix_adjvol(), which is always called.
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r-- | usr.bin/sndiod/dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c index 6dfed2c80ee..ea90224c946 100644 --- a/usr.bin/sndiod/dev.c +++ b/usr.bin/sndiod/dev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev.c,v 1.43 2018/06/26 07:39:59 ratchov Exp $ */ +/* $OpenBSD: dev.c,v 1.44 2018/06/26 07:42:04 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -1865,7 +1865,6 @@ slot_start(struct slot *s) } #endif slot_allocbufs(s); - s->mix.weight = MIDI_TO_ADATA(MIDI_MAXCTL); if (s->mode & MODE_PLAY) { s->pstate = SLOT_START; } else { |