summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Siegert <mws@linuxtv.org>2007-02-13 22:44:49 +0100
committerMarcel Siegert <mws@linuxtv.org>2007-02-13 22:44:49 +0100
commit37a0fae25a0ca580206640b2b019182a3800e6a6 (patch)
treeb1e77426fd0da7cfa1922b764bdbd52ccaaade6c
parent0173038bafb808d93f88b3f0b043696b04cc2ded (diff)
downloadmediapointer-dvb-s2-37a0fae25a0ca580206640b2b019182a3800e6a6.tar.gz
mediapointer-dvb-s2-37a0fae25a0ca580206640b2b019182a3800e6a6.tar.bz2
fix compiler warning in vivi.c
From: Marcel Siegert <mws@linuxtv.org> 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>
-rw-r--r--linux/drivers/media/video/vivi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/vivi.c b/linux/drivers/media/video/vivi.c
index 1756ff277..798e711f4 100644
--- a/linux/drivers/media/video/vivi.c
+++ b/linux/drivers/media/video/vivi.c
@@ -468,7 +468,8 @@ static void vivi_fillbuff(struct vivi_dev *dev,struct vivi_buffer *buf)
if (buf->vb.dma.varea) {
gen_line(tmpbuf,0,wmax,hmax,h,dev->timestr);
/* FIXME: replacing to __copy_to_user */
- copy_to_user(buf->vb.dma.varea+pos,tmpbuf,wmax*2);
+ if (copy_to_user(buf->vb.dma.varea+pos,tmpbuf,wmax*2)!=0)
+ dprintk(2,"vivifill copy_to_user failed.\n");
} else {
gen_line(tmpbuf,pos,wmax,hmax,h,dev->timestr);
}