OpenCloudOS-Kernel/sound/ppc
Julia Lawall c86b93628e ALSA: sound/ppc/snd_ps3.c: fix error return code
Initialize ret 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 11:01:14 +02:00
..
Kconfig powerpc: Minor cleanup to sound/ppc/Kconfig 2009-10-27 16:42:42 +11:00
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
awacs.c of: add 'of_' prefix to machine_is_compatible() 2010-02-09 08:33:00 -07:00
awacs.h [ALSA] snd-powermac: style awacs.s and awacs.h 2008-04-24 12:00:38 +02:00
beep.c ALSA: sound/ppc: update annotations of serveral functions 2009-06-03 08:08:44 +02:00
burgundy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
burgundy.h [ALSA] snd-powermac: Burgundy mixers for B&W and iMac 2008-04-24 12:00:38 +02:00
daca.c ALSA: sound/ppc: update annotations of serveral functions 2009-06-03 08:08:44 +02:00
keywest.c ALSA: keywest: Remove obsolete cleanup for clientdata 2011-09-12 10:36:12 +02:00
pmac.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
pmac.h [ALSA] Clean up with common snd_ctl_boolean_*_info callbacks 2007-10-16 15:57:45 +02:00
powermac.c ALSA: platform: Check CONFIG_PM_SLEEP instead of CONFIG_PM 2012-08-09 15:47:15 +02:00
snd_ps3.c ALSA: sound/ppc/snd_ps3.c: fix error return code 2012-08-20 11:01:14 +02:00
snd_ps3.h ALSA: ps3: Add support for SPDIF/HDMI passthru 2008-10-20 08:06:39 +02:00
snd_ps3_reg.h Fix common misspellings 2011-03-31 11:26:23 -03:00
tumbler.c ALSA: powermac - Correct lineout detection on PowerMac G4 DA 2011-04-22 13:21:01 +02:00
tumbler_volume.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00