Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219426
b: refs/heads/master
c: d639609
h: refs/heads/master
v: v3
  • Loading branch information
Pawel Osciak authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 4deb850 commit a765cb9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 111ac84a80199654db55c06e2565d4ab343c135d
refs/heads/master: d639609061e7ddcd4220c7bcbefd6cb0789454ee
6 changes: 0 additions & 6 deletions trunk/drivers/media/video/videobuf-dma-contig.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct videobuf_dma_contig_memory {
void *vaddr;
dma_addr_t dma_handle;
unsigned long size;
int is_userptr;
};

#define MAGIC_DC_MEM 0x0733ac61
Expand Down Expand Up @@ -120,7 +119,6 @@ static const struct vm_operations_struct videobuf_vm_ops = {
*/
static void videobuf_dma_contig_user_put(struct videobuf_dma_contig_memory *mem)
{
mem->is_userptr = 0;
mem->dma_handle = 0;
mem->size = 0;
}
Expand All @@ -147,7 +145,6 @@ static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem,

offset = vb->baddr & ~PAGE_MASK;
mem->size = PAGE_ALIGN(vb->size + offset);
mem->is_userptr = 0;
ret = -EINVAL;

down_read(&mm->mmap_sem);
Expand Down Expand Up @@ -181,9 +178,6 @@ static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem,
pages_done++;
}

if (!ret)
mem->is_userptr = 1;

out_up:
up_read(&current->mm->mmap_sem);

Expand Down

0 comments on commit a765cb9

Please sign in to comment.