linux/drivers/hsi/clients
Julia Lawall 265ef3ee95 HSI: cmt_speech: 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-04-05 14:45:27 +02:00
..
cmt_speech.c HSI: cmt_speech: fix error return code 2015-04-05 14:45:27 +02:00
hsi_char.c HSI: Add channel resource support to HSI clients 2014-05-16 00:54:36 +02:00
Kconfig HSI: nokia-modem: Add cmt-speech support 2015-03-31 22:19:43 +02:00
Makefile HSI: cmt_speech: Add cmt-speech driver 2015-03-31 22:14:04 +02:00
nokia-modem.c HSI: nokia-modem: Add cmt-speech support 2015-03-31 22:19:43 +02:00
ssi_protocol.c HSI changes for the v3.17 series 2014-08-06 20:06:14 -07:00