mirror of https://github.com/ericonr/sndio.git
sndiod: Remove useless check of s->ops in slot_setvol().
This commit is contained in:
parent
293d7047bd
commit
84ec0ebd8c
|
@ -1738,8 +1738,6 @@ slot_setvol(struct slot *s, unsigned int vol)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
s->vol = vol;
|
s->vol = vol;
|
||||||
if (s->ops == NULL)
|
|
||||||
return;
|
|
||||||
s->mix.vol = MIDI_TO_ADATA(s->vol);
|
s->mix.vol = MIDI_TO_ADATA(s->vol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue