summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-07-30 15:56:36 +0900
committerMichel Dänzer <michel@daenzer.net>2015-07-30 15:56:36 +0900
commit936582fde0db461c5c3d78ce4f5f4c93a88a489d (patch)
treec591d476e0bd13e311ed263d32ed51c40b105d69 /src
parent5510cd6027d2387efdf33575e3bfc424cb11bfd8 (diff)
Remove unused local variable pRADEONEnt
../../src/radeon_probe.c: In function 'radeon_get_scrninfo': ../../src/radeon_probe.c:157:22: warning: variable 'pRADEONEnt' set but not used [-Wunused-but-set-variable] RADEONEntPtr pRADEONEnt; ^ Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_probe.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/radeon_probe.c b/src/radeon_probe.c
index f81ed132..65cf0c9f 100644
--- a/src/radeon_probe.c
+++ b/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,12 +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;
- } else {
- pRADEONEnt = pPriv->ptr;
- }
}
free(pEnt);