diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-08-16 23:46:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-20 11:33:21 +0200 |
commit | 9915e67eb1134b4710a4888a3e041c757869e0e2 (patch) | |
tree | 65703e668603fc428264d0fc39c32999efd9c80f /net | |
parent | drivers/net/wan/dscc4.c: fix error return code (diff) | |
download | linux-9915e67eb1134b4710a4888a3e041c757869e0e2.tar.xz linux-9915e67eb1134b4710a4888a3e041c757869e0e2.zip |
drivers/net/irda: 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>
@@
identifier ret;
expression e1,e2;
@@
if (ret < 0)
{ ... return ret; }
... when != ret = e1
when forall
*if(...)
{
... when != ret = e2
* return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions