mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
egl/android: remove droid_probe_driver()
The function name is misleading - it effectively checks if loader_get_driver_for_fd fails. Which can happen only only on strdup error - a close to impossible scenario. Drop the function - we call the loader API at at later stage. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org>
This commit is contained in:
parent
9b5bf7afce
commit
d1211f3112
1 changed files with 0 additions and 18 deletions
|
|
@ -1404,19 +1404,6 @@ error:
|
|||
return false;
|
||||
}
|
||||
|
||||
static bool
|
||||
droid_probe_driver(int fd)
|
||||
{
|
||||
char *driver_name;
|
||||
|
||||
driver_name = loader_get_driver_for_fd(fd);
|
||||
if (driver_name == NULL)
|
||||
return false;
|
||||
|
||||
free(driver_name);
|
||||
return true;
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
probe_fail = -1,
|
||||
probe_success = 0,
|
||||
|
|
@ -1442,11 +1429,6 @@ droid_probe_device(_EGLDisplay *disp, int fd, const char *vendor)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!droid_probe_driver(fd)) {
|
||||
ret = probe_fail;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ret = probe_success;
|
||||
|
||||
cleanup:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue