summaryrefslogtreecommitdiff
path: root/src/atiprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atiprint.c')
-rw-r--r--src/atiprint.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/atiprint.c b/src/atiprint.c
index d44f24f..6cb401b 100644
--- a/src/atiprint.c
+++ b/src/atiprint.c
@@ -351,13 +351,8 @@ ATIRGB514PrintRegisters
* Display various registers when the server is invoked with -verbose.
*/
void
-ATIPrintRegisters
-(
- ATIPtr pATI
-)
+ATIPrintRegisters(ATIPtr pATI)
{
- pciVideoPtr pVideo;
- pciConfigPtr pPCI;
int Index;
CARD32 lcd_index, tv_out_index, lcd_gen_ctrl;
CARD8 dac_read, dac_mask, dac_write;
@@ -644,17 +639,13 @@ ATIPrintRegisters
#endif /* AVOID_CPIO */
- if ((pVideo = pATI->PCIInfo))
- {
- pPCI = pVideo->thisCard;
- xf86ErrorFVerb(4, "\n\n PCI configuration register values:");
- for (Index = 0; Index < 256; Index+= 4)
- {
- if (!(Index & 15))
- xf86ErrorFVerb(4, "\n 0x%02X: ", Index);
- xf86ErrorFVerb(4, " 0x%08lX",
- (unsigned long)pciReadLong(pPCI->tag, Index));
- }
+ xf86ErrorFVerb(4, "\n\n PCI configuration register values:");
+ for (Index = 0; Index < 256; Index+= 4) {
+ if (!(Index & 15))
+ xf86ErrorFVerb(4, "\n 0x%02X: ", Index);
+ xf86ErrorFVerb(4, " 0x%08lX",
+ (unsigned long)pciReadLong
+ (((pciConfigPtr)(pATI->PCIInfo->thisCard))->tag, Index));
}
xf86ErrorFVerb(4, "\n");