linux/drivers/media/pci
Peter Senna Tschudin eaddb09307 [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>
2012-11-22 15:39:11 -02:00
..
b2c2
bt8xx [media] bttv-driver: fix two warnings 2012-10-28 07:39:00 -02:00
cx18 [media] cx18: get rid of warning: no previous prototype 2012-10-27 17:58:14 -02:00
cx88 [media] cx88: get rid of a warning at dprintk() macro 2012-10-28 07:38:41 -02:00
cx23885 [media] cx23885-alsa: fix a false gcc warning at dprintk() 2012-10-27 18:01:49 -02:00
cx25821 [media] drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c: fix error return code 2012-11-22 15:39:11 -02:00
ddbridge
dm1105 [media] drivers/media/pci/dm1105/dm1105.c: fix error return code 2012-11-22 14:20:28 -02:00
ivtv [media] ivtv-ioctl.c: remove an useless check 2012-10-27 18:04:33 -02:00
mantis [media] mantis: get rid of warning: no previous prototype 2012-10-27 18:05:22 -02:00
meye [media] meye: fix a warning 2012-10-28 07:38:49 -02:00
ngene [media] drivers/media/pci/ngene/ngene-core.c: fix error return code 2012-11-22 14:20:25 -02:00
pluto2
pt1
saa7134 [media] saa7134,saa7164: warning: comparison of unsigned fixes 2012-10-28 07:38:48 -02:00
saa7146
saa7164 [media] saa7134,saa7164: warning: comparison of unsigned fixes 2012-10-28 07:38:48 -02:00
sta2x11
ttpci [media] drivers/media/pci/ttpci/budget-av.c: fix error return code 2012-11-22 13:41:31 -02:00
zoran
Kconfig
Makefile