diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2013-09-28 19:24:04 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-01 09:28:59 +0400 |
commit | 86aed6765c2c71d8e86b7d43f8ec64ac638ef2a2 (patch) | |
tree | 7277d6fd0025e8c12cb79a91aadbc5fb5fa899b2 /drivers/gpu/drm/drm_fb_helper.c | |
parent | bd89bcb00b4af00ed59a3ad2d34950b664581d85 (diff) | |
download | linux-86aed6765c2c71d8e86b7d43f8ec64ac638ef2a2.tar.xz |
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/drm_fb_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 3 |
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, struct drm_connector *connector; struct drm_connector_helper_funcs *connector_funcs; struct drm_encoder *encoder; - struct drm_fb_helper_crtc *best_crtc; int my_score, best_score, score; struct drm_fb_helper_crtc **crtcs, *crtc; struct drm_fb_helper_connector *fb_helper_conn; @@ -1369,7 +1368,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper, connector = fb_helper_conn->connector; best_crtcs[n] = NULL; - best_crtc = NULL; best_score = drm_pick_crtcs(fb_helper, best_crtcs, modes, n+1, width, height); if (modes[n] == NULL) return best_score; @@ -1418,7 +1416,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper, score = my_score + drm_pick_crtcs(fb_helper, crtcs, modes, n + 1, width, height); if (score > best_score) { - best_crtc = crtc; best_score = score; memcpy(best_crtcs, crtcs, dev->mode_config.num_connector * |