summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-03-28 07:59:11 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 12:57:51 -0300
commit63e424856b4ab0652c58f75a2d2ecb9c1f95db27 (patch)
tree43df346d9717932f3b7c28b60957dfb3b6d8ca87
parent53aaf07637baae8f53c33b803bbc96047d8da1c4 (diff)
V4L/DVB: v4l videobuf: remove unused is_mmapped field
Thanks to Pawel Osciak for noticing this. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/videobuf-core.c3
-rw-r--r--include/media/videobuf-core.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index 52bb74b18a6..d76a7d50002 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -321,8 +321,6 @@ static int __videobuf_mmap_free(struct videobuf_queue *q)
if (q->bufs[i] && q->bufs[i]->map)
return -EBUSY;
- q->is_mmapped = 0;
-
for (i = 0; i < VIDEO_MAX_FRAME; i++) {
if (NULL == q->bufs[i])
continue;
@@ -1089,7 +1087,6 @@ int videobuf_mmap_mapper(struct videobuf_queue *q, struct vm_area_struct *vma)
mutex_lock(&q->vb_lock);
retval = CALL(q, mmap_mapper, q, vma);
- q->is_mmapped = 1;
mutex_unlock(&q->vb_lock);
return retval;
diff --git a/include/media/videobuf-core.h b/include/media/videobuf-core.h
index 345ec5a45c5..22d5a02884a 100644
--- a/include/media/videobuf-core.h
+++ b/include/media/videobuf-core.h
@@ -166,7 +166,6 @@ struct videobuf_queue {
unsigned int streaming:1;
unsigned int reading:1;
- unsigned int is_mmapped:1;
/* capture via mmap() + ioctl(QBUF/DQBUF) */
struct list_head stream;