summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c
diff options
context:
space:
mode:
authordawes <dawes>2000-12-05 16:38:19 +0000
committerdawes <dawes>2000-12-05 16:38:19 +0000
commitde862f7f2c68c12cbfdb72a72c4ea6e97c968f90 (patch)
treedd8e73c0ad0f1ad5a9929f858bd69b975751ec5c /xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c
parent978cb1e87ff7bfba913e89cc87b302be078c7348 (diff)
Import of XFree86 4.0.1gX_4_0_1h
Diffstat (limited to 'xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c')
-rw-r--r--xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c b/xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c
index ef0dfc062..43ed83f73 100644
--- a/xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c
+++ b/xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c,v 1.47 2000/11/16 19:45:02 eich Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/vga/generic.c,v 1.48 2000/12/02 15:31:00 tsi Exp $ */
/*
* Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved.
*
@@ -235,7 +235,7 @@ GenericProbe(DriverPtr drv, int flags)
{
Bool foundScreen = FALSE;
int numDevSections, numUsed;
- GDevPtr *devSections = NULL;
+ GDevPtr *devSections;
int *usedChips;
int i;
@@ -279,8 +279,8 @@ GenericProbe(DriverPtr drv, int flags)
foundScreen = TRUE;
}
}
- xfree(usedChips);
}
+ xfree(usedChips);
}
}
@@ -291,8 +291,8 @@ GenericProbe(DriverPtr drv, int flags)
numDevSections,&usedChips);
if(numUsed > 0) {
if (flags & PROBE_DETECT)
- return TRUE;
- for (i = 0; i < numUsed; i++) {
+ foundScreen = TRUE;
+ else for (i = 0; i < numUsed; i++) {
ScrnInfoPtr pScrn = NULL;
if ((pScrn = xf86ConfigIsaEntity(pScrn,0,usedChips[i],
GenericISAchipsets,NULL,
@@ -312,12 +312,11 @@ GenericProbe(DriverPtr drv, int flags)
pScrn->ValidMode = GenericValidMode;
foundScreen = TRUE;
}
- xfree(usedChips);
}
+ xfree(usedChips);
}
- if (devSections)
- xfree(devSections);
+ xfree(devSections);
return foundScreen;
}