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:
Emil Velikov 2018-08-08 14:56:00 +01:00 committed by Emil Velikov
parent 3827966643
commit 9b5bf7afce

View file

@ -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;
}