linux/drivers/s390
Peter Senna Tschudin 72abaadf25 drivers/s390/char/monreader.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: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-09-26 15:45:26 +02:00
..
block s390/etr,stp: use -EOPNOTSUPP instead of -ENOSYS 2012-09-26 15:45:14 +02:00
char drivers/s390/char/monreader.c: fix error return code 2012-09-26 15:45:26 +02:00
cio s390: add uninitialized_var() to suppress false positive compiler warnings 2012-09-26 15:45:23 +02:00
crypto s390/ap_bus: add missing ifdef 2012-09-26 15:45:19 +02:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
net s390/sysinfo,stsi: change return code handling 2012-09-26 15:45:12 +02: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