xf86-video-nv: src/nv_driver.c

Aaron Plattner aplattner at kemper.freedesktop.org
Sun Apr 1 11:20:48 EEST 2007


 src/nv_driver.c |    1 -
 1 files changed, 1 deletion(-)

New commits:
diff-tree 0126c809544cb3a0242fc3bce7ad82d4962aaf1c (from d569934c3de326483347db00d34268b02101599c)
Author: Aaron Plattner <aplattner at nvidia.com>
Date:   Sun Apr 1 01:17:31 2007 -0700

    Remove extraneous DisplayModeRec allocation.
    
    Thanks to Luc Verhaegen for pointing this out.

diff --git a/src/nv_driver.c b/src/nv_driver.c
index 7ac162a..6c04529 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1599,7 +1599,6 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
     if (pNv->FlatPanel && !pNv->Television && pNv->fpWidth && pNv->fpHeight) {
 	DisplayModePtr Mode;
 
-	Mode = xnfcalloc(1, sizeof(DisplayModeRec));
 	Mode = xf86CVTMode(pNv->fpWidth, pNv->fpHeight, 60.00, TRUE, FALSE);
 	Mode->type = M_T_DRIVER;
 	pScrn->monitor->Modes = NVModesAdd(pScrn->monitor->Modes, Mode);



More information about the xorg-commit mailing list