From 27ac637a66df64c4135b77ee123d1a02076b08a0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Apr 2020 17:29:32 -0700 Subject: Remove another unnecessary return value --- al/auxeffectslot.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'al/auxeffectslot.cpp') diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index ac9bcd71..6b5c9feb 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -645,23 +645,18 @@ ALenum InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect EffectState *State{factory->create()}; if(!State) return AL_OUT_OF_MEMORY; - FPUCtl mixer_mode{}; ALCdevice *Device{Context->mDevice.get()}; std::unique_lock statelock{Device->StateLock}; State->mOutTarget = Device->Dry.Buffer; - if(State->deviceUpdate(Device) == AL_FALSE) { - statelock.unlock(); - mixer_mode.leave(); - State->release(); - return AL_OUT_OF_MEMORY; + FPUCtl mixer_mode{}; + State->deviceUpdate(Device); } - mixer_mode.leave(); if(!effect) { EffectSlot->Effect.Type = AL_EFFECT_NULL; - EffectSlot->Effect.Props = EffectProps {}; + EffectSlot->Effect.Props = EffectProps{}; } else { -- cgit v1.2.3