egl/android: remove drmVersion::name NULL check
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 8 Aug 2018 14:13:20 +0000 (15:13 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 24 Aug 2018 10:52:41 +0000 (11:52 +0100)
The name string is guaranteed to be non-NULL.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
src/egl/drivers/dri2/platform_android.c

index de53376c9fc35c0d8041de083e97d467eb78f35d..24fd77696135dc55c011cf5108755b0aa2c36979 100644 (file)
@@ -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;