diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-09-06 20:45:11 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-09-07 10:32:30 +0200 |
commit | 1f5ca8ec58eaa9d42a2474ecae335ead3f845ba1 (patch) | |
tree | c5c84a119ccbfad5d578e40d7f8a73a077d4b16e /ipc/syscall.c | |
parent | f804fff1361c9da30efc21721dc0ae5934413c4b (diff) |
ALSA: ymfpci: Use common error handling code in snd_card_ymfpci_probe()
* 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.
[ This also fixed a potential use-after-free at error path of
snd_opl3_hwdep_new(), too -- tiwai ]
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'ipc/syscall.c')
0 files changed, 0 insertions, 0 deletions