ALSA: ymfpci: Use common error handling code in snd_ymfpci_create()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 6 Sep 2017 19:12:51 +0000 (21:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Sep 2017 08:33:28 +0000 (10:33 +0200)
commitba2186e40c9565b0a3ecd9e51ac1195cc501c182
tree6f50a37d0be45e19fd426fa6ad1cd3c69a182aa7
parent1f5ca8ec58eaa9d42a2474ecae335ead3f845ba1
ALSA: ymfpci: Use common error handling code in snd_ymfpci_create()

* Add a jump target so that a bit of exception handling can be better
  reused at the end of this function.

  This issue was detected by using the Coccinelle software.

* The script "checkpatch.pl" pointed information out like the following.

  ERROR: do not use assignment in if condition

  Thus fix a few source code places.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ymfpci/ymfpci_main.c