From 6a094185d14db6818d98a320c59e0c4d7d43d5a8 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 22 Aug 2018 11:18:58 -0400 Subject: [PATCH] xfree86: Remove some redundant zero-fill for ScrnInfoRec xf86AllocateScreen() callocs these for us. Signed-off-by: Adam Jackson --- hw/xfree86/common/xf86Init.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 8be36006e..36a3c4ef6 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -680,11 +680,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv) #ifdef XFreeXDGA pScrn->SetDGAMode = xf86SetDGAMode; #endif - pScrn->DPMSSet = NULL; - pScrn->LoadPalette = NULL; - pScrn->SetOverscan = NULL; - pScrn->DriverFunc = NULL; - pScrn->pScreen = NULL; scr_index = AddGPUScreen(xf86ScreenInit, argc, argv); xf86VGAarbiterUnlock(pScrn); if (scr_index == i) { @@ -708,11 +703,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv) #ifdef XFreeXDGA xf86Screens[i]->SetDGAMode = xf86SetDGAMode; #endif - xf86Screens[i]->DPMSSet = NULL; - xf86Screens[i]->LoadPalette = NULL; - xf86Screens[i]->SetOverscan = NULL; - xf86Screens[i]->DriverFunc = NULL; - xf86Screens[i]->pScreen = NULL; scr_index = AddScreen(xf86ScreenInit, argc, argv); xf86VGAarbiterUnlock(xf86Screens[i]); if (scr_index == i) {