From: Emil Velikov Date: Wed, 8 Aug 2018 14:13:20 +0000 (+0100) Subject: egl/android: remove drmVersion::name NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f8403a4ca523eada114505219b9f7e542be2869;p=mesa.git egl/android: remove drmVersion::name NULL check The name string is guaranteed to be non-NULL. Signed-off-by: Emil Velikov Reviewed-by: Tomasz Figa --- diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index de53376c9fc..24fd7769613 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -1419,11 +1419,6 @@ droid_probe_device(_EGLDisplay *disp, int fd, const char *vendor) if (!ver) return probe_fail; - if (!ver->name) { - ret = probe_fail; - goto cleanup; - } - if (vendor && strcmp(vendor, ver->name) != 0) { ret = probe_filtered_out; goto cleanup;