mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 22:40:34 +01:00
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:
parent
3827966643
commit
9b5bf7afce
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue