OpenCloudOS-Kernel/drivers/hsi
Julia Lawall b2249129f4 HSI: nokia-modem: fix error return code
Return a negative error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 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: Sebastian Reichel <sre@kernel.org>
2015-02-28 20:14:13 +01:00
..
clients HSI: nokia-modem: fix error return code 2015-02-28 20:14:13 +01:00
controllers * misc. fixes in omap-ssi and nokia-modem drivers 2014-12-15 17:33:47 -08:00
Kconfig HSI: Introduce OMAP SSI driver 2014-05-16 00:54:51 +02:00
Makefile HSI: Introduce OMAP SSI driver 2014-05-16 00:54:51 +02:00
hsi.c HSI: Add common DT binding for HSI client devices 2014-05-16 00:54:45 +02:00
hsi_boardinfo.c HSI: hsi: Introducing HSI framework 2012-01-05 15:42:13 +02:00
hsi_core.h HSI: hsi: Introducing HSI framework 2012-01-05 15:42:13 +02:00