summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-08-08 15:05:56 +0100
committerEmil Velikov <[email protected]>2018-08-24 11:52:39 +0100
commitd1211f3112c0e7c710a380ddc0887a44f461e1bb (patch)
tree7ba642fcc4b23622c39c208c954a7788a34814ac /src/egl/drivers
parent9b5bf7afced7ef7dd1b379023df8cd8ed333b160 (diff)
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 <[email protected]> Reviewed-by: Tomasz Figa <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri2/platform_android.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index ee6c2791b18..de53376c9fc 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -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: