From b9230c66cbedda22ffe6173d1f9ad760334bca02 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Wed, 19 Feb 2014 11:37:56 +0100 Subject: Remove unused and redundant variables Some of the variables in struct _TegraRec are redundant or completely unused. Get rid of them. Signed-off-by: Thierry Reding --- src/driver.c | 3 +-- src/driver.h | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/driver.c b/src/driver.c index 4504349..182debb 100644 --- a/src/driver.c +++ b/src/driver.c @@ -309,7 +309,6 @@ TegraPreInit(ScrnInfoPtr pScrn, int flags) return FALSE; tegra = TegraPTR(pScrn); - tegra->SaveGeneration = -1; tegra->pEnt = pEnt; pScrn->displayWidth = 640; /* default it */ @@ -523,7 +522,7 @@ TegraCreateScreenResources(ScreenPtr pScreen) drmmode_uevent_init(pScrn, &tegra->drmmode); - if (!tegra->SWCursor) + if (!tegra->drmmode.sw_cursor) drmmode_map_cursor_bos(pScrn, &tegra->drmmode); pixels = drmmode_map_front_bo(&tegra->drmmode); diff --git a/src/driver.h b/src/driver.h index c4797fa..3c7408a 100644 --- a/src/driver.h +++ b/src/driver.h @@ -47,19 +47,13 @@ typedef struct _TegraRec int fd; EntPtr entityPrivate; - - int Chipset; EntityInfoPtr pEnt; - Bool noAccel; - Bool SWCursor; CloseScreenProcPtr CloseScreen; /* Broken-out options. */ OptionInfoPtr Options; - unsigned int SaveGeneration; - CreateScreenResourcesProcPtr createScreenResources; ScreenBlockHandlerProcPtr BlockHandler; void *driver; -- cgit v1.2.3