]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f8bc6f45037ccbd1963426c7881198c579aeeef
tree6f50a37d0be45e19fd426fa6ad1cd3c69a182aa7
parent40da8ca09a0920274fa1ffedbc2cd6dcb4a2c002
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