OpenCloudOS-Kernel/drivers/s390
Peter Senna Tschudin b8f37a4aa0 ctcm: 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: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-09-24 15:45:18 -04:00
..
block s390/dasd: fix ioctl return value 2012-08-28 10:08:31 +02:00
char s390/sclp_sdias: Add missing break and "fall through" 2012-08-08 07:32:55 -07:00
cio s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
crypto s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
net ctcm: fix error return code 2012-09-24 15:45:18 -04:00
scsi s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00