diff options
author | 2014-08-07 22:57:47 +0200 | |
---|---|---|
committer | 2014-08-19 09:24:33 -0500 | |
commit | 20e7d4653d2b580e490dfbb1dfd138cd9844319c (patch) | |
tree | c9ab22e5ff0e1c9d2159518f974b6e7527d62f97 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: phy: samsung: Fix wrong bit mask for PHYPARAM1_PCS_TXDEEMPH (diff) | |
download | wireguard-linux-20e7d4653d2b580e490dfbb1dfd138cd9844319c.tar.xz wireguard-linux-20e7d4653d2b580e490dfbb1dfd138cd9844319c.zip |
usb: gadget: fix error return code
Convert a zero return value on error 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\|ret != 0\))
{ ... return ret; }
|
ret = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions