summaryrefslogtreecommitdiff
path: root/src/intel_device.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-30 15:02:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-30 15:02:19 +0100
commit5005bd2d52ab64cbeae099d512d0b65be6c4abaa (patch)
treef4f18aa7a5b0e8dbd32f48a902de888327b929ff /src/intel_device.c
parentf8738d7b4cc1c624d4390ef9ce7426ba457d7dd3 (diff)
intel: Fix failure code for reporting !drmCheckModesetingSupported
The new function returns the fd, not a Bool, so the error code must now be -1. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r--src/intel_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index cb48c34a..da4d21e0 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -98,7 +98,7 @@ static int __intel_open_device(const struct pci_device *pci, char **path)
if (xf86LoadKernelModule("i915"))
ret = drmCheckModesettingSupported(id);
if (ret)
- return FALSE;
+ return -1;
/* Be nice to the user and load fbcon too */
(void)xf86LoadKernelModule("fbcon");
}