OSDN Git Service

ALSA: hda/via - Rewrite with error goto
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jun 2018 20:36:17 +0000 (22:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:26 +0000 (10:04 +0200)
commitfcbdcc1a93dd49ccd0e0f34224ce1ba4203b75de
treeb6d213d16d8cca662725c9a872c1141d8fd8a5b3
parent0785b0ecb8fa960b4f49010d0679d174efad423c
ALSA: hda/via - Rewrite with error goto

Currently VIA codec driver invokes via_free() at each place of the
error path.  Move the error handling to the end of each function
commonly and do goto-error as a standard idiom.

This is a preliminary patch for the further cleanups, and no
functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c