drm/qxl: Remove dead code
authorThierry Reding <treding@nvidia.com>
Fri, 24 Jun 2016 17:15:18 +0000 (18:15 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 11:09:20 +0000 (13:09 +0200)
The QXL driver sets DRIVER_MODESET unconditionally, so testing for the
absence of the feature will always fail.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466788520-21325-5-git-send-email-frank.binns@imgtec.com
drivers/gpu/drm/qxl/qxl_kms.c

index 2319800b7addc5af25cda7d33a5f186d7ea4c69a..12b8dff9dc8c3f62e9b2e248de3c0cc45766dd98 100644 (file)
@@ -310,10 +310,6 @@ int qxl_driver_load(struct drm_device *dev, unsigned long flags)
        struct qxl_device *qdev;
        int r;
 
-       /* require kms */
-       if (!drm_core_check_feature(dev, DRIVER_MODESET))
-               return -ENODEV;
-
        qdev = kzalloc(sizeof(struct qxl_device), GFP_KERNEL);
        if (qdev == NULL)
                return -ENOMEM;