Skip to content

Commit

Permalink
V4L/DVB: videobuf: Remove videobuf_mapping start and end fields
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 7181772 commit 959794d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/videobuf-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/video/videobuf-dma-sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/video/videobuf-vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions include/media/videobuf-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ struct videobuf_queue;

struct videobuf_mapping {
unsigned int count;
unsigned long start;
unsigned long end;
struct videobuf_queue *q;
};

Expand Down

0 comments on commit 959794d

Please sign in to comment.