diff options
| author | Peter Senna Tschudin <[email protected]> | 2012-09-08 10:01:58 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-11-22 15:39:11 -0200 |
| commit | eaddb09307494646650e7c7432739ade10bdf56c (patch) | |
| tree | d713bf71ebf3a5c34403761f2fcf94e0e5258a82 /fs/jbd2/commit.c | |
| parent | 304a0807a22852fe3095a62c24b25c4d0e16d003 (diff) | |
[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 <[email protected]>
Reviewed-by: walter harms <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions