[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211018084625.852598-1-luo.penghao@zte.com.cn>
Date: Mon, 18 Oct 2021 08:46:25 +0000
From: luo penghao <cgel.zte@...il.com>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] drm: Remove unused variable and its assignment.
The assignment in these two places is meaningless, so it should be deleted.
The clang_analyzer complains as follows:
drivers/gpu/drm/drm_crtc_helper.c:635:2 warning:
Value stored to 'count' is never read.
drivers/gpu/drm/drm_crtc_helper.c:681:2 warning:
Value stored to 'count' is never read.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: luo penghao <luo.penghao@....com.cn>
---
drivers/gpu/drm/drm_crtc_helper.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index bff9175..0e97e0a 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -632,7 +632,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set,
}
/* a) traverse passed in connector list and get encoders for them */
- count = 0;
drm_connector_list_iter_begin(dev, &conn_iter);
drm_for_each_connector_iter(connector, &conn_iter) {
const struct drm_connector_helper_funcs *connector_funcs =
@@ -678,7 +677,6 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set,
goto fail;
}
- count = 0;
drm_connector_list_iter_begin(dev, &conn_iter);
drm_for_each_connector_iter(connector, &conn_iter) {
if (!connector->encoder)
--
2.15.2
Powered by blists - more mailing lists