mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user