Commit f35f1bb8 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mauro Carvalho Chehab

V4L/DVB: videobuf-dma-contig.c: simplify pointer dereference

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f7fc97ad
...@@ -55,14 +55,14 @@ static void videobuf_vm_close(struct vm_area_struct *vma) ...@@ -55,14 +55,14 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
struct videobuf_queue *q = map->q; struct videobuf_queue *q = map->q;
int i; int i;
dev_dbg(map->q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n", dev_dbg(q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n",
map, map->count, vma->vm_start, vma->vm_end); map, map->count, vma->vm_start, vma->vm_end);
map->count--; map->count--;
if (0 == map->count) { if (0 == map->count) {
struct videobuf_dma_contig_memory *mem; struct videobuf_dma_contig_memory *mem;
dev_dbg(map->q->dev, "munmap %p q=%p\n", map, q); dev_dbg(q->dev, "munmap %p q=%p\n", map, q);
mutex_lock(&q->vb_lock); mutex_lock(&q->vb_lock);
/* We need first to cancel streams, before unmapping */ /* We need first to cancel streams, before unmapping */
...@@ -89,7 +89,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma) ...@@ -89,7 +89,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma)
/* vfree is not atomic - can't be /* vfree is not atomic - can't be
called with IRQ's disabled called with IRQ's disabled
*/ */
dev_dbg(map->q->dev, "buf[%d] freeing %p\n", dev_dbg(q->dev, "buf[%d] freeing %p\n",
i, mem->vaddr); i, mem->vaddr);
dma_free_coherent(q->dev, mem->size, dma_free_coherent(q->dev, mem->size,
......
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