Skip to content

Commit

Permalink
V4L/DVB (7554): videobuf-dma-sg: Remove unused flag
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 24, 2008
1 parent aaea56a commit a9dbbeb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions drivers/media/video/videobuf-dma-sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ static int videobuf_dma_init_user_locked(struct videobuf_dmabuf *dma,
dprintk(1,"init user [0x%lx+0x%lx => %d pages]\n",
data,size,dma->nr_pages);

dma->varea = (void *) data;


err = get_user_pages(current,current->mm,
data & PAGE_MASK, dma->nr_pages,
rw == READ, 1, /* force */
Expand Down Expand Up @@ -300,7 +297,6 @@ int videobuf_dma_free(struct videobuf_dmabuf *dma)

vfree(dma->vmalloc);
dma->vmalloc = NULL;
dma->varea = NULL;

if (dma->bus_addr) {
dma->bus_addr = 0;
Expand Down
3 changes: 0 additions & 3 deletions include/media/videobuf-dma-sg.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ struct videobuf_dmabuf {
/* for kernel buffers */
void *vmalloc;

/* Stores the userspace pointer to vmalloc area */
void *varea;

/* for overlay buffers (pci-pci dma) */
dma_addr_t bus_addr;

Expand Down

0 comments on commit a9dbbeb

Please sign in to comment.