linux_dsm_epyc7002/sound/pci/ctxfi
Julia Lawall 4d8ce1c996 ALSA: sound/pci/ctxfi/ctatc.c: fix error return code
Initialize err before returning on failure, as done elsewhere in the
function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 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>
2012-08-20 10:57:30 +02:00
..
ct20k1reg.h ALSA: ctxfi - Use native timer interrupt on emu20k1 2009-06-05 16:44:13 +02:00
ct20k2reg.h ALSA: ctxfi: Add support for Creative Titanium HD 2011-06-14 07:32:29 +02:00
ctamixer.c ALSA: ctxfi - Simple code clean up 2009-07-22 17:12:34 +02:00
ctamixer.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
ctatc.c ALSA: sound/pci/ctxfi/ctatc.c: fix error return code 2012-08-20 10:57:30 +02:00
ctatc.h ALSA: Convert to new pm_ops for PCI drivers 2012-07-03 08:23:03 +02:00
ctdaio.c ALSA: ctxfi: Add support for Creative Titanium HD 2011-06-14 07:32:29 +02:00
ctdaio.h ALSA: ctxfi: Add support for Creative Titanium HD 2011-06-14 07:32:29 +02:00
cthardware.c ALSA: ctxfi - Clean up probe routines 2009-06-08 18:10:32 +02:00
cthardware.h ALSA: Convert to new pm_ops for PCI drivers 2012-07-03 08:23:03 +02:00
cthw20k1.c ALSA: Convert to new pm_ops for PCI drivers 2012-07-03 08:23:03 +02:00
cthw20k1.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
cthw20k2.c ALSA: Convert to new pm_ops for PCI drivers 2012-07-03 08:23:03 +02:00
cthw20k2.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
ctimap.c ALSA: ctxfi - Remove useless initializations and cast 2009-06-08 14:57:57 +02:00
ctimap.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
ctmixer.c ALSA: ctxfi: Implement a combined capabilities query method to replace multiple have_x query methods. 2011-06-14 07:34:03 +02:00
ctmixer.h ALSA: ctxfi - Add PM support 2009-06-22 14:53:51 +02:00
ctpcm.c ALSA: ctxfi: Bump playback substreams to 256 2011-08-24 10:39:44 +02:00
ctpcm.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
ctresource.c ALSA: ctxfi - Simple code clean up 2009-07-22 17:12:34 +02:00
ctresource.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
ctsrc.c ALSA: ctxf: Use kcalloc instead of kzalloc to allocate array 2011-12-06 13:27:22 +01:00
ctsrc.h ALSA: SB X-Fi driver merge 2009-05-14 08:24:10 +02:00
cttimer.c ALSA: module_param: make bool parameters really bool 2011-12-19 10:34:41 +01:00
cttimer.h ALSA: ctxfi - Use native timer interrupt on emu20k1 2009-06-05 16:44:13 +02:00
ctvmem.c ALSA: ctxfi: Fix typo in ctvmem.c 2012-02-23 18:28:49 +01:00
ctvmem.h ALSA: ctxfi: Bump playback substreams to 256 2011-08-24 10:39:44 +02:00
Makefile ALSA: ctxfi - Use native timer interrupt on emu20k1 2009-06-05 16:44:13 +02:00
xfi.c ALSA: Convert to new pm_ops for PCI drivers 2012-07-03 08:23:03 +02:00