From 2f8403a4ca523eada114505219b9f7e542be2869 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 8 Aug 2018 15:13:20 +0100 Subject: 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 --- src/egl/drivers/dri2/platform_android.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/egl') 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; -- cgit v1.2.3