While at it, drop the duplicate return.

Signed-off-by: Eric Engestrom <eric.engest...@imgtec.com>
---
 src/loader/loader.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/loader/loader.c b/src/loader/loader.c
index f7f85e37c2094f52175e..3c67f9dc2448a34dbf8e 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -284,24 +284,15 @@ loader_get_pci_id_for_fd(int fd, int *vendor_id, int 
*chip_id)
    return 0;
 }
 
-
-#if defined(HAVE_LIBDRM)
-static char *
-drm_get_device_name_for_fd(int fd)
-{
-   return drmGetDeviceNameFromFd2(fd);
-}
-#endif
-
 char *
 loader_get_device_name_for_fd(int fd)
 {
    char *result = NULL;
 
 #if HAVE_LIBDRM
-   if ((result = drm_get_device_name_for_fd(fd)))
-      return result;
+   result = drmGetDeviceNameFromFd2(fd);
 #endif
+
    return result;
 }
 
-- 
Cheers,
  Eric

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to