]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (5249): Fix compiler warning in vivi.c
authorMarcel Siegert <mws@linuxtv.org>
Tue, 13 Feb 2007 21:44:49 +0000 (18:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:32 +0000 (13:35 -0200)
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>
drivers/media/video/vivi.c

index 0fb6d520d1d0f9aa37c0bcc1865c15e5c1615fbb..f7e1d19103749edcb308ee25ff45505efc87e64d 100644 (file)
@@ -447,7 +447,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);
                }