Content-Type: multipart/mixed; boundary="===============1040992375222913175==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] dma-buf: system_heap: fix returnvar.cocci warnings Date: Sat, 26 Sep 2020 15:53:27 +0200 Message-ID: List-Id: --===============1040992375222913175== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci CC: John Stultz Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/John-Stultz/dma-buf-Perfor= mance-improvements-for-system-heap/20200926-122541 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = bcf876870b95592b52519ed4aafcf9d95999bc9c :::::: branch date: 4 hours ago :::::: commit date: 4 hours ago Please take the patch only if it's a positive warning. Thanks! system_heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/dma-buf/heaps/system_heap.c +++ b/drivers/dma-buf/heaps/system_heap.c @@ -133,7 +133,6 @@ static int system_heap_dma_buf_begin_cpu { struct system_heap_buffer *buffer =3D dmabuf->priv; struct dma_heap_attachment *a; - int ret =3D 0; mutex_lock(&buffer->lock); @@ -146,7 +145,7 @@ static int system_heap_dma_buf_begin_cpu } mutex_unlock(&buffer->lock); - return ret; + return 0; } static int system_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf, --===============1040992375222913175==--