[PATCH xf86-video-amdgpu 16/19] Remove set but unused amdgpu_dri2::pKernelDRMVersion
Emil Velikov
emil.l.velikov at gmail.com
Wed Apr 4 14:29:51 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/amdgpu_dri2.h | 1 -
src/amdgpu_kms.c | 6 ------
2 files changed, 7 deletions(-)
diff --git a/src/amdgpu_dri2.h b/src/amdgpu_dri2.h
index c6a2ab6..a345e6b 100644
--- a/src/amdgpu_dri2.h
+++ b/src/amdgpu_dri2.h
@@ -30,7 +30,6 @@
#include <xorg-server.h>
struct amdgpu_dri2 {
- drmVersionPtr pKernelDRMVersion;
Bool available;
Bool enabled;
char *device_name;
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 5d85bd7..c70cfe5 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1397,12 +1397,6 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags)
info->dri2.available = FALSE;
info->dri2.enabled = FALSE;
- info->dri2.pKernelDRMVersion = drmGetVersion(pAMDGPUEnt->fd);
- if (info->dri2.pKernelDRMVersion == NULL) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "AMDGPUDRIGetVersion failed to get the DRM version\n");
- return FALSE;
- }
/* Get ScreenInit function */
if (!xf86LoadSubModule(pScrn, "fb"))
--
2.16.0
More information about the amd-gfx
mailing list