loader: drop empty function alias
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 26 Oct 2017 14:37:49 +0000 (15:37 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 26 Oct 2017 15:25:33 +0000 (16:25 +0100)
While at it, drop the duplicate return.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emli.velikov@collabora.com>
src/loader/loader.c

index f7f85e37c2094f52175e052f04333a727ea6dd63..3c67f9dc2448a34dbf8e21341edc94860207a0af 100644 (file)
@@ -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;
 }