summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/qxl
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-06-24 18:15:18 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-12 13:09:20 +0200
commitab1947be4c6e716da86c579643015bf6b87e541e (patch)
tree8aa7e030d2894da00107d1e4d94bf111bf7e5783 /drivers/gpu/drm/qxl
parent0d02c4a1b1b1774a47b6e154db5194fa827accd6 (diff)
downloadlinux-stable-ab1947be4c6e716da86c579643015bf6b87e541e.tar.gz
linux-stable-ab1947be4c6e716da86c579643015bf6b87e541e.tar.bz2
linux-stable-ab1947be4c6e716da86c579643015bf6b87e541e.zip
drm/qxl: Remove dead code
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
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r--drivers/gpu/drm/qxl/qxl_kms.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_kms.c b/drivers/gpu/drm/qxl/qxl_kms.c
index 2319800b7add..12b8dff9dc8c 100644
--- a/drivers/gpu/drm/qxl/qxl_kms.c
+++ b/drivers/gpu/drm/qxl/qxl_kms.c
@@ -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;