[PATCH xf86-video-ati] Remove unused struct members from drmmode_display.h

Michel Dänzer michel at daenzer.net
Thu May 11 10:03:02 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

(Ported from amdgpu commit 462ac3341e5bfbded9086d3d9043821d19352b3e)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/drmmode_display.c | 1 -
 src/drmmode_display.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index e2899cf50..d0ecfa855 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2540,7 +2540,6 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)
 	xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
 
 	drmmode->scrn = pScrn;
-	drmmode->cpp = cpp;
 	mode_res = drmModeGetResources(drmmode->fd);
 	if (!mode_res)
 		return FALSE;
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index df2c4b7bb..db68054a7 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -41,8 +41,6 @@
 
 typedef struct {
   int fd;
-  drmModeFBPtr mode_fb;
-  int cpp;
   struct radeon_bo_manager *bufmgr;
   ScrnInfoPtr scrn;
 #ifdef HAVE_LIBUDEV
-- 
2.11.0



More information about the amd-gfx mailing list