diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-04-01 01:17:31 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-04-01 01:17:31 -0700 |
commit | 0126c809544cb3a0242fc3bce7ad82d4962aaf1c (patch) | |
tree | a6e09fad2fdca020c2658cff9ead8f967062b383 | |
parent | d569934c3de326483347db00d34268b02101599c (diff) |
Remove extraneous DisplayModeRec allocation.
Thanks to Luc Verhaegen for pointing this out.
-rw-r--r-- | src/nv_driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |