diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2013-12-30 02:47:35 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 15:34:05 +0400 |
commit | 58f087c9b670ea7001d640fadbf7e4e91e739d6b (patch) | |
tree | 5f04a0df90d40ef0ff3670d7a946623e5cf919dd /drivers/media/dvb-frontends | |
parent | 6c49d79381f4bacacdef50a1902c92833e765c63 (diff) | |
download | linux-58f087c9b670ea7001d640fadbf7e4e91e739d6b.tar.xz |
[media] e4000: fix error return code
Set the return variable to an error code as done elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
0 files changed, 0 insertions, 0 deletions