From dc0dbd41745f99dcd9ca3fda05acf5a5f11a6960 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Wed, 25 Jul 2012 04:44:18 +0300 Subject: 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. --- src/geode_driver.c | 6 ------ 1 file changed, 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; } -- cgit v1.2.3