From: Emma Anholt Date: Tue, 29 Nov 2022 19:09:05 +0000 (-0800) Subject: gbm: Drop redundant extension error checks. X-Git-Tag: upstream/23.3.3~15962 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ad1ef82dd9277a7bf9cb04f8a0ea803825e6976;p=platform%2Fupstream%2Fmesa.git gbm: Drop redundant extension error checks. loader_bind_extensions error handling has already made sure these are present. Reviewed-by: Adam Jackson Acked-by: Eric Engestrom Part-of: --- diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index a38de440c49..e7e0dfbe4e1 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -390,9 +390,6 @@ dri_screen_create_dri2(struct gbm_dri_device *dri, char *driver_name) dri->loader_extensions = gbm_dri_screen_extensions; - if (dri->dri2 == NULL) - return -1; - dri->screen = dri->dri2->createNewScreen2(0, dri->base.v0.fd, dri->loader_extensions, dri->driver_extensions, @@ -436,9 +433,6 @@ dri_screen_create_swrast(struct gbm_dri_device *dri) dri->loader_extensions = gbm_dri_screen_extensions; - if (dri->swrast == NULL) - return -1; - dri->screen = dri->swrast->createNewScreen2(0, dri->loader_extensions, dri->driver_extensions, &dri->driver_configs, dri);