From 84ec0ebd8c411485e9c25b2ad314f6703fa89740 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 11 Jun 2018 19:53:27 +0200 Subject: [PATCH] sndiod: Remove useless check of s->ops in slot_setvol(). --- sndiod/dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sndiod/dev.c b/sndiod/dev.c index 83cad8e..a7d3292 100644 --- a/sndiod/dev.c +++ b/sndiod/dev.c @@ -1738,8 +1738,6 @@ slot_setvol(struct slot *s, unsigned int vol) } #endif s->vol = vol; - if (s->ops == NULL) - return; s->mix.vol = MIDI_TO_ADATA(s->vol); }