drm/qxl: drop unused mode private pointer
authorDave Airlie <airlied@redhat.com>
Sat, 15 Nov 2014 00:15:30 +0000 (10:15 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 15 Nov 2014 00:15:30 +0000 (10:15 +1000)
This was pointless, forgot to remove the code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_display.c

index b8cf556b431c11d31d86074d00f698d90433d166..4a0a8b29b0a1e070ab0ce4e7574def7a73ab7383 100644 (file)
@@ -592,7 +592,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
 {
        struct drm_device *dev = crtc->dev;
        struct qxl_device *qdev = dev->dev_private;
-       struct qxl_mode *m = (void *)mode->private;
        struct qxl_framebuffer *qfb;
        struct qxl_bo *bo, *old_bo = NULL;
        struct qxl_crtc *qcrtc = to_qxl_crtc(crtc);
@@ -610,12 +609,6 @@ static int qxl_crtc_mode_set(struct drm_crtc *crtc,
        }
        qfb = to_qxl_framebuffer(crtc->primary->fb);
        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",
                  x, y,
                  mode->hdisplay, mode->vdisplay,