[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1600761208-45229-1-git-send-email-zou_wei@huawei.com>
Date: Tue, 22 Sep 2020 15:53:28 +0800
From: Zou Wei <zou_wei@...wei.com>
To: <sumit.semwal@...aro.org>, <afd@...com>,
<benjamin.gaignard@...aro.org>, <lmark@...eaurora.org>,
<labbott@...hat.com>, <Brian.Starkey@....com>,
<john.stultz@...aro.org>, <christian.koenig@....com>
CC: <linux-media@...r.kernel.org>, <dri-devel@...ts.freedesktop.org>,
<linaro-mm-sig@...ts.linaro.org>, <linux-kernel@...r.kernel.org>,
Zou Wei <zou_wei@...wei.com>
Subject: [PATCH -next] dma-buf: heaps: Remove unused variable ret
This patch fixes below warnings reported by coccicheck
./drivers/dma-buf/heaps/heap-helpers.c:202:5-8: Unneeded variable: "ret". Return "0" on line 215
Signed-off-by: Zou Wei <zou_wei@...wei.com>
---
drivers/dma-buf/heaps/heap-helpers.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma-buf/heaps/heap-helpers.c b/drivers/dma-buf/heaps/heap-helpers.c
index d0696cf..7969510 100644
--- a/drivers/dma-buf/heaps/heap-helpers.c
+++ b/drivers/dma-buf/heaps/heap-helpers.c
@@ -199,7 +199,6 @@ static int dma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
{
struct heap_helper_buffer *buffer = dmabuf->priv;
struct dma_heaps_attachment *a;
- int ret = 0;
mutex_lock(&buffer->lock);
@@ -212,7 +211,7 @@ static int dma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
}
mutex_unlock(&buffer->lock);
- return ret;
+ return 0;
}
static int dma_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf,
--
2.6.2
Powered by blists - more mailing lists