]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB: videobuf: Remove videobuf_mapping start and end fields
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 11 May 2010 13:36:33 +0000 (10:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:23:09 +0000 (15:23 -0300)
The fields are assigned but never used, remove them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-contig.c
drivers/media/video/videobuf-dma-sg.c
drivers/media/video/videobuf-vmalloc.c
include/media/videobuf-core.h

index 98e292c351850989f9032a35dd8922b81f258abc..372b87efcd0538ec6c91c1bb45749177294f7442 100644 (file)
@@ -280,8 +280,6 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
                return -ENOMEM;
 
        buf->map = map;
-       map->start = vma->vm_start;
-       map->end = vma->vm_end;
        map->q = q;
 
        buf->baddr = vma->vm_start;
index 8924e51408c1f26460d9f1acc4d8a7b635b9a522..2d64040594b831ec9af7d823f65079c41d2b081b 100644 (file)
@@ -608,8 +608,6 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
        }
 
        map->count    = 1;
-       map->start    = vma->vm_start;
-       map->end      = vma->vm_end;
        map->q        = q;
        vma->vm_ops   = &videobuf_vm_ops;
        vma->vm_flags |= VM_DONTEXPAND | VM_RESERVED;
index cf5be6bfd745b166da407f809587f85529405760..f0d7cb8d4c720c658d6f8f2a9cb7f5198245cb8a 100644 (file)
@@ -245,8 +245,6 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
                return -ENOMEM;
 
        buf->map = map;
-       map->start = vma->vm_start;
-       map->end   = vma->vm_end;
        map->q     = q;
 
        buf->baddr = vma->vm_start;
index a157cd166e6e29510ea441393688f5d9ec97d191..f2c41cebf453a65abbe4fc281f20103287e5fea0 100644 (file)
@@ -54,8 +54,6 @@ struct videobuf_queue;
 
 struct videobuf_mapping {
        unsigned int count;
-       unsigned long start;
-       unsigned long end;
        struct videobuf_queue *q;
 };