summaryrefslogtreecommitdiff
path: root/driver/xf86-video-ati/src/radeon_probe.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2016-04-02 07:37:35 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2016-04-02 07:37:35 +0000
commit8aa706cc566b1bdd1b34eda99aa39f03408ecc77 (patch)
tree64683856877270d249605ad5e6e726c07c887670 /driver/xf86-video-ati/src/radeon_probe.c
parent4590cb8710f56e7c1b2c5b91a079d5765dda0ece (diff)
Update to xf86-video-ati 7.6.1. ok jsg@
Diffstat (limited to 'driver/xf86-video-ati/src/radeon_probe.c')
-rw-r--r--driver/xf86-video-ati/src/radeon_probe.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/driver/xf86-video-ati/src/radeon_probe.c b/driver/xf86-video-ati/src/radeon_probe.c
index ad1e96ea9..65cf0c9fa 100644
--- a/driver/xf86-video-ati/src/radeon_probe.c
+++ b/driver/xf86-video-ati/src/radeon_probe.c
@@ -154,7 +154,6 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
*/
{
DevUnion *pPriv;
- RADEONEntPtr pRADEONEnt;
xf86SetEntitySharable(entity_num);
@@ -166,14 +165,8 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
xf86SetEntityInstanceForScreen(pScrn, pEnt->index, xf86GetNumEntityInstances(pEnt->index) - 1);
- if (!pPriv->ptr) {
+ if (!pPriv->ptr)
pPriv->ptr = xnfcalloc(sizeof(RADEONEntRec), 1);
- pRADEONEnt = pPriv->ptr;
- pRADEONEnt->HasSecondary = FALSE;
- } else {
- pRADEONEnt = pPriv->ptr;
- pRADEONEnt->HasSecondary = TRUE;
- }
}
free(pEnt);
@@ -271,10 +264,8 @@ radeon_platform_probe(DriverPtr pDriver,
if (!pPriv->ptr) {
pPriv->ptr = xnfcalloc(sizeof(RADEONEntRec), 1);
pRADEONEnt = pPriv->ptr;
- pRADEONEnt->HasSecondary = FALSE;
} else {
pRADEONEnt = pPriv->ptr;
- pRADEONEnt->HasSecondary = TRUE;
}
pRADEONEnt->platform_dev = dev;
}