diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-04-05 14:06:33 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-05 18:04:27 +0200 |
commit | 646cb6dae4994eb332ddf7376520eed255c5a8b4 (patch) | |
tree | 8b16d697b749a8096a92db3367615a02b453bfab /sound/pci/emu10k1/emu10k1_main.c | |
parent | eab0fbfa41040f4f76b173cad17c0c8ed40cba33 (diff) | |
download | linux-stable-646cb6dae4994eb332ddf7376520eed255c5a8b4.tar.gz linux-stable-646cb6dae4994eb332ddf7376520eed255c5a8b4.tar.bz2 linux-stable-646cb6dae4994eb332ddf7376520eed255c5a8b4.zip |
ALSA: au1x00: fix error return code
Return a negative error code on failure.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/emu10k1_main.c')
0 files changed, 0 insertions, 0 deletions