[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220913041528.115637-1-jingyuwang_vip@163.com>
Date: Tue, 13 Sep 2022 12:15:28 +0800
From: Jingyu Wang <jingyuwang_vip@....com>
To: maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...ux.ie, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Jingyu Wang <jingyuwang_vip@....com>
Subject: [PATCH] drm/writeback: Remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.
Signed-off-by: Jingyu Wang <jingyuwang_vip@....com>
---
drivers/gpu/drm/drm_writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c
index a031c335bdb9..1bf8987322cd 100644
--- a/drivers/gpu/drm/drm_writeback.c
+++ b/drivers/gpu/drm/drm_writeback.c
@@ -179,7 +179,7 @@ int drm_writeback_connector_init(struct drm_device *dev,
const u32 *formats, int n_formats,
u32 possible_crtcs)
{
- int ret = 0;
+ int ret;
drm_encoder_helper_add(&wb_connector->encoder, enc_helper_funcs);
base-commit: 5957ac6635a1a12d4aa2661bbf04d3085a73372a
--
2.34.1
Powered by blists - more mailing lists