egl/android: use strcmp with drmVersion::name
The name string is guaranteed to be NULL terminated. Drop the explicit length check that comes with strncmp(). Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
This commit is contained in:
committed by
Emil Velikov
parent
3827966643
commit
9b5bf7afce
@@ -1437,7 +1437,7 @@ droid_probe_device(_EGLDisplay *disp, int fd, const char *vendor)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (vendor && strncmp(vendor, ver->name, PROPERTY_VALUE_MAX) != 0) {
|
||||
if (vendor && strcmp(vendor, ver->name) != 0) {
|
||||
ret = probe_filtered_out;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user