diff options
author | Eric Engestrom <[email protected]> | 2017-10-26 15:37:49 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-10-26 16:25:33 +0100 |
commit | 109de3049dda6be2a5a3910f777feea0bbf9ce92 (patch) | |
tree | 0fc0abfe76cb85e2aed9d1ef9144399d27ba9d0d /src/loader/loader.c | |
parent | 3f8e3c2bd8f54ae6817f7496be47f4e1a8860d9c (diff) |
loader: drop empty function alias
While at it, drop the duplicate return.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/loader.c')
-rw-r--r-- | src/loader/loader.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c index f7f85e37c20..3c67f9dc244 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; } |