OpenCloudOS-Kernel/drivers/rapidio/devices
Peter Senna Tschudin 18f6287f53 drivers/rapidio/devices/tsi721.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>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-06 03:05:20 +09:00
..
Kconfig RapidIO: add mport driver for Tsi721 bridge 2011-11-02 16:07:01 -07:00
Makefile rapidio/tsi721: add DMA engine support 2012-05-31 17:49:31 -07:00
tsi721.c drivers/rapidio/devices/tsi721.c: fix error return code 2012-10-06 03:05:20 +09:00
tsi721.h rapidio/tsi721: add DMA engine support 2012-05-31 17:49:31 -07:00
tsi721_dma.c rapidio/tsi721: add DMA engine support 2012-05-31 17:49:31 -07:00