summaryrefslogtreecommitdiff
path: root/src/cir_driver.c
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-12-25 08:30:08 -0600
committerKevin Brace <kevinbrace@gmx.com>2018-12-25 08:30:08 -0600
commit1069d52aa49e5e32e3371399bc97b9b7e4873df7 (patch)
tree76966b5ab26f3891bb6deb9ced8703b7c2af078b /src/cir_driver.c
parentd1139bd2febe5282cb2ac8887ec944470921d04c (diff)
Eliminate unused variable compilation warning
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src/cir_driver.c')
-rw-r--r--src/cir_driver.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cir_driver.c b/src/cir_driver.c
index bbd8bbc..fce2fac 100644
--- a/src/cir_driver.c
+++ b/src/cir_driver.c
@@ -271,8 +271,6 @@ CIRProbe(DriverPtr drv, int flags)
_X_EXPORT Bool
CirMapMem(CirPtr pCir, int scrnIndex)
{
- int mmioFlags;
-
#ifdef CIR_DEBUG
ErrorF("CirMapMem\n");
#endif
@@ -316,7 +314,6 @@ CirMapMem(CirPtr pCir, int scrnIndex)
} else {
#ifndef XSERVER_LIBPCIACCESS
- mmioFlags = VIDMEM_MMIO;
/*
* For Alpha, we need to map SPARSE memory, since we need
* byte/short access. Common-level will automatically use
@@ -324,7 +321,7 @@ CirMapMem(CirPtr pCir, int scrnIndex)
*/
pCir->IOBase =
- xf86MapPciMem(scrnIndex, mmioFlags, pCir->PciTag,
+ xf86MapPciMem(scrnIndex, VIDMEM_MMIO, pCir->PciTag,
pCir->IOAddress, pCir->IoMapSize);
if (pCir->IOBase == NULL)
return FALSE;