diff --git a/dsp/q6afe.c b/dsp/q6afe.c index 556b4f84c248..ccfc7d5ff847 100644 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -8950,8 +8950,7 @@ int afe_close(int port_id) proxy_afe_instance[port_id & 0x3] = 0; afe_close_done[port_id & 0x3] = true; } - ret = -EINVAL; - goto fail_cmd; + return -EINVAL; } pr_debug("%s: port_id = 0x%x\n", __func__, port_id); if ((port_id == RT_PROXY_DAI_001_RX) ||