]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/hdmi: Use single mutex unlock in error paths
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Jul 2018 21:06:51 +0000 (23:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:34:40 +0000 (08:34 +0100)
commit05ec2ddd909bdb7710c04f08b418ffb94d6c8d86
treeac5c75b04a056917ffa2a15e58f173f578435aa4
parent94bd4c7952923b61acc4b44aeedaeca43debcd0b
ALSA: hda/hdmi: Use single mutex unlock in error paths

commit f69548ffafcc4942022f16f2f192b24143de1dba upstream

Instead of calling mutex_unlock() at each error path multiple times,
take the standard goto-and-a-single-unlock approach.  This will
simplify the code and make easier to find the unbalanced mutex locks.

No functional changes, but only the code readability improvement as a
preliminary work for further changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c