From patchwork Tue Mar 23 14:59:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 87658 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2NEx9bS000470 for ; Tue, 23 Mar 2010 14:59:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754351Ab0CWO7I (ORCPT ); Tue, 23 Mar 2010 10:59:08 -0400 Received: from mail.gmx.net ([213.165.64.20]:56704 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754336Ab0CWO7F (ORCPT ); Tue, 23 Mar 2010 10:59:05 -0400 Received: (qmail invoked by alias); 23 Mar 2010 14:59:03 -0000 Received: from p57BD1C70.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.28.112] by mail.gmx.net (mp072) with SMTP; 23 Mar 2010 15:59:03 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX19LhQFAwrVLudNjru+cvmz+LDe6c0p3Bc5is6N4O/ mpqb2ZEotOM0qT Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1Nu5ZZ-00024n-Vc for linux-media@vger.kernel.org; Tue, 23 Mar 2010 15:59:13 +0100 Date: Tue, 23 Mar 2010 15:59:13 +0100 (CET) From: Guennadi Liakhovetski To: Linux Media Mailing List Subject: [PATCH] videobuf-dma-contig.c: simplify pointer dereference Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53000000000000003 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 14:59:09 +0000 (UTC) diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c index 22c0109..8e45a49 100644 --- a/drivers/media/video/videobuf-dma-contig.c +++ b/drivers/media/video/videobuf-dma-contig.c @@ -54,14 +54,14 @@ static void videobuf_vm_close(struct vm_area_struct *vma) struct videobuf_queue *q = map->q; 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->count--; if (0 == map->count) { 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); /* We need first to cancel streams, before unmapping */ @@ -88,7 +88,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma) /* vfree is not atomic - can't be 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); dma_free_coherent(q->dev, mem->size,