[PATCH xf86-video-cirrus 1/3] Eliminate unused variable compilation warning
Kevin Brace
kevinbrace at gmx.com
Tue Dec 25 14:39:25 UTC 2018
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
src/cir_driver.c | 5 +----
1 file changed, 1 insertion(+), 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;
--
2.7.4
More information about the xorg-devel
mailing list