diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-03-23 10:52:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:58:01 -0400 |
commit | f35f1bb8fc1e56646a3dab0ecd12e23bca6323c4 (patch) | |
tree | f719975699bd49d01bfd77b74dc3764421db66ae /drivers/media/video | |
parent | f7fc97adb1efd51609d965ba76d559f7daef4262 (diff) |
V4L/DVB: videobuf-dma-contig.c: simplify pointer dereference
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/videobuf-dma-contig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index 055ce8439ce6..74730c624cfc 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c | |||
@@ -55,14 +55,14 @@ static void videobuf_vm_close(struct vm_area_struct *vma) | |||
55 | struct videobuf_queue *q = map->q; | 55 | struct videobuf_queue *q = map->q; |
56 | int i; | 56 | int i; |
57 | 57 | ||
58 | dev_dbg(map->q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n", | 58 | dev_dbg(q->dev, "vm_close %p [count=%u,vma=%08lx-%08lx]\n", |
59 | map, map->count, vma->vm_start, vma->vm_end); | 59 | map, map->count, vma->vm_start, vma->vm_end); |
60 | 60 | ||
61 | map->count--; | 61 | map->count--; |
62 | if (0 == map->count) { | 62 | if (0 == map->count) { |
63 | struct videobuf_dma_contig_memory *mem; | 63 | struct videobuf_dma_contig_memory *mem; |
64 | 64 | ||
65 | dev_dbg(map->q->dev, "munmap %p q=%p\n", map, q); | 65 | dev_dbg(q->dev, "munmap %p q=%p\n", map, q); |
66 | mutex_lock(&q->vb_lock); | 66 | mutex_lock(&q->vb_lock); |
67 | 67 | ||
68 | /* We need first to cancel streams, before unmapping */ | 68 | /* We need first to cancel streams, before unmapping */ |
@@ -89,7 +89,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma) | |||
89 | /* vfree is not atomic - can't be | 89 | /* vfree is not atomic - can't be |
90 | called with IRQ's disabled | 90 | called with IRQ's disabled |
91 | */ | 91 | */ |
92 | dev_dbg(map->q->dev, "buf[%d] freeing %p\n", | 92 | dev_dbg(q->dev, "buf[%d] freeing %p\n", |
93 | i, mem->vaddr); | 93 | i, mem->vaddr); |
94 | 94 | ||
95 | dma_free_coherent(q->dev, mem->size, | 95 | dma_free_coherent(q->dev, mem->size, |