Skip to content

Commit

Permalink
V4L/DVB (5249): Fix compiler warning in vivi.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Siegert authored and Mauro Carvalho Chehab committed Feb 21, 2007
1 parent 90e3bd4 commit 4acf267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4acf267

Please sign in to comment.