From c7257f6249ea9803f5e352a532fa6932775c82c8 Mon Sep 17 00:00:00 2001 From: Daniel Mentz Date: Sun, 19 Jul 2020 10:08:28 -0700 Subject: [PATCH] ANDROID: ion: Remove unused local variable 'vaddr' Remove definition of unused local variable 'vaddr' in ion_dma_buf_begin_cpu_access() to avoid the following compiler warning: drivers/staging/android/ion/ion_dma_buf.c:166:8: warning: unused variable 'vaddr' [-Wunused-variable] void *vaddr; ^ Bug: 158635261 Fixes: b8018578d1c3 ("ANDROID: ion: remove kmap from begin[end]_cpu_access") Signed-off-by: Daniel Mentz Change-Id: I0b9061651c9349420018169eeda152e53b9b7f95 --- drivers/staging/android/ion/ion_dma_buf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_dma_buf.c b/drivers/staging/android/ion/ion_dma_buf.c index 97cfaacf229f..b7295fee31c7 100644 --- a/drivers/staging/android/ion/ion_dma_buf.c +++ b/drivers/staging/android/ion/ion_dma_buf.c @@ -163,7 +163,6 @@ static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf, { struct ion_buffer *buffer = dmabuf->priv; struct ion_heap *heap = buffer->heap; - void *vaddr; struct ion_dma_buf_attachment *a; if (heap->buf_ops.begin_cpu_access)