aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorLespiau, Damien <damien.lespiau@intel.com>2013-09-28 11:24:04 -0400
committerDave Airlie <airlied@redhat.com>2013-10-01 01:28:59 -0400
commit86aed6765c2c71d8e86b7d43f8ec64ac638ef2a2 (patch)
tree7277d6fd0025e8c12cb79a91aadbc5fb5fa899b2 /drivers/gpu/drm
parentbd89bcb00b4af00ed59a3ad2d34950b664581d85 (diff)
drm: Remove unused variable in drm_pick_crtcs()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index e69d26bde002..f61ac2387d3c 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -1357,7 +1357,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
1357 struct drm_connector *connector; 1357 struct drm_connector *connector;
1358 struct drm_connector_helper_funcs *connector_funcs; 1358 struct drm_connector_helper_funcs *connector_funcs;
1359 struct drm_encoder *encoder; 1359 struct drm_encoder *encoder;
1360 struct drm_fb_helper_crtc *best_crtc;
1361 int my_score, best_score, score; 1360 int my_score, best_score, score;
1362 struct drm_fb_helper_crtc **crtcs, *crtc; 1361 struct drm_fb_helper_crtc **crtcs, *crtc;
1363 struct drm_fb_helper_connector *fb_helper_conn; 1362 struct drm_fb_helper_connector *fb_helper_conn;
@@ -1369,7 +1368,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
1369 connector = fb_helper_conn->connector; 1368 connector = fb_helper_conn->connector;
1370 1369
1371 best_crtcs[n] = NULL; 1370 best_crtcs[n] = NULL;
1372 best_crtc = NULL;
1373 best_score = drm_pick_crtcs(fb_helper, best_crtcs, modes, n+1, width, height); 1371 best_score = drm_pick_crtcs(fb_helper, best_crtcs, modes, n+1, width, height);
1374 if (modes[n] == NULL) 1372 if (modes[n] == NULL)
1375 return best_score; 1373 return best_score;
@@ -1418,7 +1416,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
1418 score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1, 1416 score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1,
1419 width, height); 1417 width, height);
1420 if (score > best_score) { 1418 if (score > best_score) {
1421 best_crtc = crtc;
1422 best_score = score; 1419 best_score = score;
1423 memcpy(best_crtcs, crtcs, 1420 memcpy(best_crtcs, crtcs,
1424 dev->mode_config.num_connector * 1421 dev->mode_config.num_connector *