ASoC: pcm512x: Fix a double unlock in pcm512x_digital_mute()
We accidentally call mutex_unlock(&pcm512x->mutex); twice in a row. I re-wrote the error handling to use "goto unlock;" instead of returning directly. Hopefully, it makes the code a little simpler. Fixes: 3500f1c5 ("ASoC: pcm512x: Implement the digital_mute interface") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Reviwed-by: NDimitris Papavasiliou <dpapavas@gmail.com> Signed-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录