summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-02-09 16:58:51 -0500
committerAdam Jackson <ajax@redhat.com>2014-05-21 10:23:06 -0400
commite6909a31ffa3c2b8100320ea0a5987d9d315383e (patch)
tree284f9b1aab8f46e773fa7bf15dba5651a9df2525
parentd2c65c24e94dca1e8fb16c851d0e2fe41bf5d1c6 (diff)
Undo some code duplication
-rw-r--r--src/mga_driver.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 46478a6..ba64425 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -2767,18 +2767,10 @@ MGAMapMem(ScrnInfoPtr pScrn)
if (pMga->IOBase == NULL)
return FALSE;
- if (pMga->is_G200ER)
- {
pMga->FbBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_FRAMEBUFFER,
pMga->PciTag, pMga->FbAddress,
pMga->FbMapSize);
- }
- else
- {
- pMga->FbBase = xf86MapPciMem(pScrn->scrnIndex, VIDMEM_FRAMEBUFFER,
- pMga->PciTag, pMga->FbAddress,
- pMga->FbMapSize);
- }
+
if (pMga->FbBase == NULL)
return FALSE;
#endif