summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2012-07-25 04:44:18 +0300
committerMart Raudsepp <leio@gentoo.org>2012-07-25 04:44:18 +0300
commitdc0dbd41745f99dcd9ca3fda05acf5a5f11a6960 (patch)
tree42d0ee2fa2383a7aee3e315549502cdf27ee5352
parent1ed67d70ac9d3afd9b372c311aaf7b77e38b3e21 (diff)
Fix an unused variable warning in geode_driver.c
geode_driver.c:372:9: warning: variable 'cpu_detected' set but not used [-Wunused-but-set-variable] Was used only in a DEBUGMSG, which has since been made not do anything ever, so just kill it completely, as the debug message wasn't useful anyway.
-rw-r--r--src/geode_driver.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/geode_driver.c b/src/geode_driver.c
index a8cc944..b27bfd5 100644
--- a/src/geode_driver.c
+++ b/src/geode_driver.c
@@ -369,7 +369,6 @@ AmdPciProbe(DriverPtr driver,
int entity_num, struct pci_device *device, intptr_t match_data)
{
ScrnInfoPtr scrn = NULL;
- int cpu_detected;
ErrorF("AmdPciProbe: Probing for supported devices!\n");
@@ -385,13 +384,11 @@ AmdPciProbe(DriverPtr driver,
switch (device->device_id) {
#ifdef HAVE_LX
case PCI_CHIP_GEODELX:
- cpu_detected = LX;
LXSetupChipsetFPtr(scrn);
break;
#endif
#ifdef HAVE_GX
case PCI_CHIP_GEODEGX:
- cpu_detected = GX;
GXSetupChipsetFPtr(scrn);
break;
#endif
@@ -399,9 +396,6 @@ AmdPciProbe(DriverPtr driver,
ErrorF("AmdPciProbe: unknown device ID\n");
return FALSE;
}
-
- DEBUGMSG(1, (0, X_INFO, "AmdPciProbe: CPUDetected %d!\n",
- cpu_detected));
}
return scrn != NULL;
}