diff options
author | Thierry Reding <treding@nvidia.com> | 2014-02-19 11:37:56 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-07-09 11:44:56 +0200 |
commit | b9230c66cbedda22ffe6173d1f9ad760334bca02 (patch) | |
tree | 79add76c2b63eebee6bad6f2adb619afa1c958b1 | |
parent | a454e40c676c38edd069f090921e4a4d2b24233c (diff) |
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 <treding@nvidia.com>
-rw-r--r-- | src/driver.c | 3 | ||||
-rw-r--r-- | src/driver.h | 6 |
2 files changed, 1 insertions, 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; |