Commit 967b8e04 authored by Dave Airlie's avatar Dave Airlie

drm/qxl: drop unused mode private pointer

This was pointless, forgot to remove the code.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ca5a71de
...@@ -592,7 +592,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, ...@@ -592,7 +592,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
{ {
struct drm_device *dev = crtc->dev; struct drm_device *dev = crtc->dev;
struct qxl_device *qdev = dev->dev_private; struct qxl_device *qdev = dev->dev_private;
struct qxl_mode *m = (void *)mode->private;
struct qxl_framebuffer *qfb; struct qxl_framebuffer *qfb;
struct qxl_bo *bo, *old_bo = NULL; struct qxl_bo *bo, *old_bo = NULL;
struct qxl_crtc *qcrtc = to_qxl_crtc(crtc); struct qxl_crtc *qcrtc = to_qxl_crtc(crtc);
...@@ -610,12 +609,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc, ...@@ -610,12 +609,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
} }
qfb = to_qxl_framebuffer(crtc->primary->fb); qfb = to_qxl_framebuffer(crtc->primary->fb);
bo = gem_to_qxl_bo(qfb->obj); bo = gem_to_qxl_bo(qfb->obj);
if (!m)
/* and do we care? */
DRM_DEBUG("%dx%d: not a native mode\n", x, y);
else
DRM_DEBUG("%dx%d: qxl id %d\n",
mode->hdisplay, mode->vdisplay, m->id);
DRM_DEBUG("+%d+%d (%d,%d) => (%d,%d)\n", DRM_DEBUG("+%d+%d (%d,%d) => (%d,%d)\n",
x, y, x, y,
mode->hdisplay, mode->vdisplay, mode->hdisplay, mode->vdisplay,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment