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 <danielmentz@google.com>
Change-Id: I0b9061651c9349420018169eeda152e53b9b7f95
This commit is contained in:
Daniel Mentz 2020-07-19 10:08:28 -07:00 • committed by Todd Kjos
commit c7257f6249

View file

@ -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)