From caa3e1685a9995f322a8dfbfa56cd52eb4597411 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 25 Sep 2025 13:56:46 +0200 Subject: [PATCH] xfree86: dga: drop unnecessary swapped request handler The request handler already refusing non-local access, so no need for any extra swapped handler. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86DGA.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hw/xfree86/common/xf86DGA.c b/hw/xfree86/common/xf86DGA.c index 61ec4d52bb..7ff09be3e2 100644 --- a/hw/xfree86/common/xf86DGA.c +++ b/hw/xfree86/common/xf86DGA.c @@ -1649,12 +1649,6 @@ ProcXDGACreateColormap(ClientPtr client) return Success; } -static int _X_COLD -SProcXDGADispatch(ClientPtr client) -{ - return DGAErrorBase + XF86DGAClientNotLocal; -} - #if 0 #define DGA_REQ_DEBUG #endif @@ -1760,7 +1754,7 @@ XFree86DGAExtensionInit(void) XF86DGANumberEvents, XF86DGANumberErrors, ProcXDGADispatch, - SProcXDGADispatch, + ProcXDGADispatch, XDGAResetProc, StandardMinorOpcode))) { int i;