linux/sound/pci/rme9652
Julia Lawall b17cbdd85f ALSA: sound/pci/rme9652/hdspm.c: fix error return code
Convert a nonnegative error return code to a negative one, as returned
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:00:51 +02:00
..
Makefile
hdsp.c Merge branch 'topic/misc' into for-linus 2012-05-21 12:51:35 +02:00
hdspm.c ALSA: sound/pci/rme9652/hdspm.c: fix error return code 2012-08-20 11:00:51 +02:00
rme9652.c ALSA: pci: clean up using module_pci_driver() 2012-04-24 12:25:00 +02:00