[Mesa-dev] [PATCH 4/5] egl/android: remove drmVersion::name NULL check
Emil Velikov
emil.l.velikov at gmail.com
Mon Aug 13 14:44:52 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
The name string is guaranteed to be non-NULL.
Cc: Robert Foss <robert.foss at collabora.com>
Cc: Tomasz Figa <tfiga at chromium.org>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/egl/drivers/dri2/platform_android.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 9f2124fe349..02bb0b55f03 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1251,11 +1251,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;
--
2.18.0
More information about the mesa-dev
mailing list