aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/davinci
diff options
context:
space:
mode:
authorMats Randgaard <mats.randgaard@tandberg.com>2010-09-07 10:28:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:05:50 -0400
commit11382f3d8a2d54d1db0aa6a768cd94214536c1b2 (patch)
treecf711ae067b1a08b69dc0ffe3c425d85273968e9 /drivers/media/video/davinci
parent1f8766b4e3f06c2206e7ff48da72d2886672759a (diff)
V4L/DVB: vpif_cap: don't ignore return code of videobuf_poll_stream()
Signed-off-by: Mats Randgaard <mats.randgaard@tandberg.com> Signed-off-by: Hans Verkuil <hans.verkuil@tandberg.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/davinci')
-rw-r--r--drivers/media/video/davinci/vpif_capture.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/davinci/vpif_capture.c b/drivers/media/video/davinci/vpif_capture.c
index 2ed233f98a9e..730bd4cf5772 100644
--- a/drivers/media/video/davinci/vpif_capture.c
+++ b/drivers/media/video/davinci/vpif_capture.c
@@ -731,7 +731,6 @@ static int vpif_mmap(struct file *filep, struct vm_area_struct *vma)
731 */ 731 */
732static unsigned int vpif_poll(struct file *filep, poll_table * wait) 732static unsigned int vpif_poll(struct file *filep, poll_table * wait)
733{ 733{
734 int err = 0;
735 struct vpif_fh *fh = filep->private_data; 734 struct vpif_fh *fh = filep->private_data;
736 struct channel_obj *channel = fh->channel; 735 struct channel_obj *channel = fh->channel;
737 struct common_obj *common = &(channel->common[VPIF_VIDEO_INDEX]); 736 struct common_obj *common = &(channel->common[VPIF_VIDEO_INDEX]);
@@ -739,8 +738,7 @@ static unsigned int vpif_poll(struct file *filep, poll_table * wait)
739 vpif_dbg(2, debug, "vpif_poll\n"); 738 vpif_dbg(2, debug, "vpif_poll\n");
740 739
741 if (common->started) 740 if (common->started)
742 err = videobuf_poll_stream(filep, &common->buffer_queue, wait); 741 return videobuf_poll_stream(filep, &common->buffer_queue, wait);
743
744 return 0; 742 return 0;
745} 743}
746 744