From e97adda52d66e8165fdb8d97146e3f1553396cb4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 19 Jul 2024 17:04:34 +0200 Subject: [PATCH] xfree86: modesetting: merge FreeRec() into FreeScreen() No need to have one function doing nothing more than calling another one with the same prototype. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/drivers/modesetting/driver.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index 05e9e459f..3a06fd95d 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -1023,7 +1023,7 @@ ms_unwrap_property_requests(ScrnInfoPtr scrn) } static void -FreeRec(ScrnInfoPtr pScrn) +FreeScreen(ScrnInfoPtr pScrn) { modesettingPtr ms; @@ -2214,12 +2214,6 @@ AdjustFrame(ScrnInfoPtr pScrn, int x, int y) drmmode_adjust_frame(pScrn, &ms->drmmode, x, y); } -static void -FreeScreen(ScrnInfoPtr pScrn) -{ - FreeRec(pScrn); -} - static void LeaveVT(ScrnInfoPtr pScrn) {