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)
committerTakashi Iwai <tiwai@suse.de>
Sun, 29 Jul 2018 07:28:12 +0000 (09:28 +0200)
commitf69548ffafcc4942022f16f2f192b24143de1dba
tree2a88b18a7d591cebd74af9cc53a59226db670b42
parentfad56c895f1f33f9063da558067307b00d44d40d
ALSA: hda/hdmi: Use single mutex unlock in error paths

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>
sound/pci/hda/patch_hdmi.c