V4L/DVB: v4l videobuf: remove unused is_mmapped field
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 28 Mar 2010 10:59:11 +0000 (07:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:51 +0000 (12:57 -0300)
Thanks to Pawel Osciak for noticing this.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c
include/media/videobuf-core.h

index 52bb74b18a68aa5e83bc45cea38f67bcb084568e..d76a7d500029724b2a4228f3de58831b890c8fd6 100644 (file)
@@ -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;
index 345ec5a45c55c64172aeb14a3676b8f1fb03d6b4..22d5a02884adcbe345d8efea989e377a6ac26a41 100644 (file)
@@ -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;