diff options
author | Marcel Siegert <mws@linuxtv.org> | 2007-02-13 16:44:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:35:32 -0500 |
commit | 4acf26703e6cabceb6838ee9c4f75f765ad96915 (patch) | |
tree | ba24f54b670d83d3b87edd3c2da692debf613e2d /drivers/media/video/vivi.c | |
parent | 90e3bd4ba5563f2a6efbb46ce7e10845329dfffd (diff) |
V4L/DVB (5249): Fix compiler warning in vivi.c
The result of copy_to_user was not used, so the compiler complained
now a warning will be issued if copy_to_user fails.
Signed-off-by: Marcel Siegert <mws@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/vivi.c')
-rw-r--r-- | drivers/media/video/vivi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 0fb6d520d1d0..f7e1d1910374 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -447,7 +447,8 @@ static void vivi_fillbuff(struct vivi_dev *dev,struct vivi_buffer *buf) | |||
447 | if (buf->vb.dma.varea) { | 447 | if (buf->vb.dma.varea) { |
448 | gen_line(tmpbuf,0,wmax,hmax,h,dev->timestr); | 448 | gen_line(tmpbuf,0,wmax,hmax,h,dev->timestr); |
449 | /* FIXME: replacing to __copy_to_user */ | 449 | /* FIXME: replacing to __copy_to_user */ |
450 | copy_to_user(buf->vb.dma.varea+pos,tmpbuf,wmax*2); | 450 | if (copy_to_user(buf->vb.dma.varea+pos,tmpbuf,wmax*2)!=0) |
451 | dprintk(2,"vivifill copy_to_user failed.\n"); | ||
451 | } else { | 452 | } else { |
452 | gen_line(tmpbuf,pos,wmax,hmax,h,dev->timestr); | 453 | gen_line(tmpbuf,pos,wmax,hmax,h,dev->timestr); |
453 | } | 454 | } |