[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220413063934.23571-1-zhaojunkui2008@126.com>
Date: Tue, 12 Apr 2022 23:39:34 -0700
From: Bernard Zhao <zhaojunkui2008@....com>
To: Thierry Reding <thierry.reding@...il.com>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: bernard@...o.com, Bernard Zhao <zhaojunkui2008@....com>
Subject: [PATCH] gpu/host1x: remove useless if(ptr) check to kfree
This patch remove useless if(ptr) check to kfree.
Signed-off-by: Bernard Zhao <zhaojunkui2008@....com>
---
drivers/gpu/host1x/fence.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c
index ecab72882192..05b36bfc8b74 100644
--- a/drivers/gpu/host1x/fence.c
+++ b/drivers/gpu/host1x/fence.c
@@ -93,8 +93,7 @@ static void host1x_syncpt_fence_release(struct dma_fence *f)
{
struct host1x_syncpt_fence *sf = to_host1x_fence(f);
- if (sf->waiter)
- kfree(sf->waiter);
+ kfree(sf->waiter);
dma_fence_free(f);
}
--
2.33.1
Powered by blists - more mailing lists