summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-05-05 13:19:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-05-05 13:19:01 +0000
commitf66982a1398b3823f24bb6644040e05dfed43789 (patch)
tree50a01c41eb859b4b41a03d6bfc6adde8fa017994 /sys
parent900c86559a9a839726af9d092b8a8fbb10ac309a (diff)
Remove a supefluous check.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c
index a11aecb6341..edf1f16642e 100644
--- a/sys/dev/pci/drm/i915/i915_gem.c
+++ b/sys/dev/pci/drm/i915/i915_gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i915_gem.c,v 1.13 2013/05/05 13:02:46 kettenis Exp $ */
+/* $OpenBSD: i915_gem.c,v 1.14 2013/05/05 13:19:00 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -2924,10 +2924,6 @@ i915_gem_idle(struct drm_device *dev)
drm_i915_private_t *dev_priv = dev->dev_private;
int ret;
- /* If drm attach failed */
- if (dev == NULL)
- return (0);
-
DRM_LOCK();
if (dev_priv->mm.suspended) {