diff options
author | Dave Airlie <airlied@redhat.com> | 2014-11-14 19:15:30 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-11-14 19:15:30 -0500 |
commit | 967b8e04d7993e93a44ffb63cc6504b6eded899a (patch) | |
tree | 19d24ede29ef918efe072ba5dff0a521b63f4b83 /drivers/gpu/drm/qxl | |
parent | ca5a71de4852e3eeba53a326ddf260b7b2e117b1 (diff) |
drm/qxl: drop unused mode private pointer
This was pointless, forgot to remove the code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index b8cf556b431c..4a0a8b29b0a1 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c | |||
@@ -592,7 +592,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, | |||
592 | { | 592 | { |
593 | struct drm_device *dev = crtc->dev; | 593 | struct drm_device *dev = crtc->dev; |
594 | struct qxl_device *qdev = dev->dev_private; | 594 | struct qxl_device *qdev = dev->dev_private; |
595 | struct qxl_mode *m = (void *)mode->private; | ||
596 | struct qxl_framebuffer *qfb; | 595 | struct qxl_framebuffer *qfb; |
597 | struct qxl_bo *bo, *old_bo = NULL; | 596 | struct qxl_bo *bo, *old_bo = NULL; |
598 | struct qxl_crtc *qcrtc = to_qxl_crtc(crtc); | 597 | struct qxl_crtc *qcrtc = to_qxl_crtc(crtc); |
@@ -610,12 +609,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, | |||
610 | } | 609 | } |
611 | qfb = to_qxl_framebuffer(crtc->primary->fb); | 610 | qfb = to_qxl_framebuffer(crtc->primary->fb); |
612 | bo = gem_to_qxl_bo(qfb->obj); | 611 | bo = gem_to_qxl_bo(qfb->obj); |
613 | if (!m) | ||
614 | /* and do we care? */ | ||
615 | DRM_DEBUG("%dx%d: not a native mode\n", x, y); | ||
616 | else | ||
617 | DRM_DEBUG("%dx%d: qxl id %d\n", | ||
618 | mode->hdisplay, mode->vdisplay, m->id); | ||
619 | DRM_DEBUG("+%d+%d (%d,%d) => (%d,%d)\n", | 612 | DRM_DEBUG("+%d+%d (%d,%d) => (%d,%d)\n", |
620 | x, y, | 613 | x, y, |
621 | mode->hdisplay, mode->vdisplay, | 614 | mode->hdisplay, mode->vdisplay, |