diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-09-08 10:01:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-22 15:39:11 -0200 |
commit | eaddb09307494646650e7c7432739ade10bdf56c (patch) | |
tree | d713bf71ebf3a5c34403761f2fcf94e0e5258a82 /drivers/media/pci/cx18 | |
parent | 304a0807a22852fe3095a62c24b25c4d0e16d003 (diff) | |
download | blackbird-obmc-linux-eaddb09307494646650e7c7432739ade10bdf56c.tar.gz blackbird-obmc-linux-eaddb09307494646650e7c7432739ade10bdf56c.zip |
[media] drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c: 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>
(
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>
While here, replace strlen()+kmemdup() to kstrdup().
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Reviewed-by: walter harms <wharms@bfs.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx18')
0 files changed, 0 insertions, 0 deletions