mirror of
https://github.com/brl/mutter.git
synced 2024-12-01 12:20:47 -05:00
gpu-kms: Return NULL, not FALSE
Another small mistake spotted while working on #77. This function returns a pointer, thus we should return NULL, not FALSE. Issue: #77
This commit is contained in:
parent
773b8384fa
commit
bc05e49eba
@ -778,7 +778,7 @@ meta_gpu_kms_new (MetaMonitorManagerKms *monitor_manager_kms,
|
|||||||
|
|
||||||
kms_fd = meta_launcher_open_restricted (launcher, kms_file_path, error);
|
kms_fd = meta_launcher_open_restricted (launcher, kms_file_path, error);
|
||||||
if (kms_fd == -1)
|
if (kms_fd == -1)
|
||||||
return FALSE;
|
return NULL;
|
||||||
|
|
||||||
gpu_kms = g_object_new (META_TYPE_GPU_KMS,
|
gpu_kms = g_object_new (META_TYPE_GPU_KMS,
|
||||||
"monitor-manager", monitor_manager_kms,
|
"monitor-manager", monitor_manager_kms,
|
||||||
|
Loading…
Reference in New Issue
Block a user