aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2015-04-05 12:06:26 +0000
committerSebastian Reichel <[email protected]>2015-04-05 12:45:27 +0000
commit265ef3ee9575e6d150f485d28dbe153a50d27f4c (patch)
tree9e738bb8573b85dfe436e0666d4c9123d0daa0f9 /net/unix/af_unix.c
parentHSI: nokia-modem: Add cmt-speech support (diff)
downloadkernel-265ef3ee9575e6d150f485d28dbe153a50d27f4c.tar.gz
kernel-265ef3ee9575e6d150f485d28dbe153a50d27f4c.zip
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions