Commit 63e42485 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB: v4l videobuf: remove unused is_mmapped field

Thanks to Pawel Osciak for noticing this.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 53aaf076
...@@ -321,8 +321,6 @@ static int __videobuf_mmap_free(struct videobuf_queue *q) ...@@ -321,8 +321,6 @@ static int __videobuf_mmap_free(struct videobuf_queue *q)
if (q->bufs[i] && q->bufs[i]->map) if (q->bufs[i] && q->bufs[i]->map)
return -EBUSY; return -EBUSY;
q->is_mmapped = 0;
for (i = 0; i < VIDEO_MAX_FRAME; i++) { for (i = 0; i < VIDEO_MAX_FRAME; i++) {
if (NULL == q->bufs[i]) if (NULL == q->bufs[i])
continue; continue;
...@@ -1089,7 +1087,6 @@ int videobuf_mmap_mapper(struct videobuf_queue *q, struct vm_area_struct *vma) ...@@ -1089,7 +1087,6 @@ int videobuf_mmap_mapper(struct videobuf_queue *q, struct vm_area_struct *vma)
mutex_lock(&q->vb_lock); mutex_lock(&q->vb_lock);
retval = CALL(q, mmap_mapper, q, vma); retval = CALL(q, mmap_mapper, q, vma);
q->is_mmapped = 1;
mutex_unlock(&q->vb_lock); mutex_unlock(&q->vb_lock);
return retval; return retval;
......
...@@ -166,7 +166,6 @@ struct videobuf_queue { ...@@ -166,7 +166,6 @@ struct videobuf_queue {
unsigned int streaming:1; unsigned int streaming:1;
unsigned int reading:1; unsigned int reading:1;
unsigned int is_mmapped:1;
/* capture via mmap() + ioctl(QBUF/DQBUF) */ /* capture via mmap() + ioctl(QBUF/DQBUF) */
struct list_head stream; struct list_head stream;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment