Skip to content

Commit 6ee67e3

Browse files
YueHaibingatseanpaul
authored andcommitted
drm/fb-helper: Remove set but not used variable 'connector_funcs'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/drm_fb_helper.c: In function 'drm_pick_crtcs': drivers/gpu/drm/drm_fb_helper.c:2373:43: warning: variable 'connector_funcs' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/1536722130-108819-1-git-send-email-yuehaibing@huawei.com
1 parent fcb74da commit 6ee67e3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/drm_fb_helper.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
23702370
{
23712371
int c, o;
23722372
struct drm_connector *connector;
2373-
const struct drm_connector_helper_funcs *connector_funcs;
23742373
int my_score, best_score, score;
23752374
struct drm_fb_helper_crtc **crtcs, *crtc;
23762375
struct drm_fb_helper_connector *fb_helper_conn;
@@ -2399,8 +2398,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
23992398
if (drm_has_preferred_mode(fb_helper_conn, width, height))
24002399
my_score++;
24012400

2402-
connector_funcs = connector->helper_private;
2403-
24042401
/*
24052402
* select a crtc for this connector and then attempt to configure
24062403
* remaining connectors

0 commit comments

Comments
 (0)