diff options
author | Kenneth Graunke <[email protected]> | 2017-03-01 16:02:58 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-03-06 12:38:15 -0800 |
commit | 7782936cbcb6d17723a19802a17d4ce3fe93f34f (patch) | |
tree | 7e90e75b39f519a3f1297e6474c9b9ddc61bfb79 /src/mesa/drivers/dri | |
parent | b5b123ac8f7e24c2f7949d2be0160a716d3a9870 (diff) |
i965: Return NULL from initScreen2, not false.
This returns a pointer, not a boolean. No actual effect, but cleaner.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 1e752f40f0d..9cd2a657d8d 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1654,14 +1654,14 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen) fprintf(stderr, "\nERROR! DRI2 loader with getBuffersWithFormat() " "support required\n"); - return false; + return NULL; } /* Allocate the private area */ screen = rzalloc(NULL, struct intel_screen); if (!screen) { fprintf(stderr, "\nERROR! Allocating private area failed\n"); - return false; + return NULL; } /* parse information in __driConfigOptions */ driParseOptionInfo(&screen->optionCache, brw_config_options.xml); @@ -1670,11 +1670,11 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen) dri_screen->driverPrivate = (void *) screen; if (!intel_init_bufmgr(screen)) - return false; + return NULL; screen->deviceID = drm_intel_bufmgr_gem_get_devid(screen->bufmgr); if (!gen_get_device_info(screen->deviceID, &screen->devinfo)) - return false; + return NULL; const struct gen_device_info *devinfo = &screen->devinfo; |